Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[ENG-1392] Backwards compatable Django upgrade to 2.0.13 #9300

Conversation

Johnetordoff
Copy link
Contributor

@Johnetordoff Johnetordoff commented Feb 24, 2020

Purpose

Get backwards compatible code out of the way before we flip over to Django 2

Changes

  • Make Many-to-manys use direct assignment
  • add on_delete kwarg to foreign key fields
  • Get urls helpers from django.urls instead of django.core.urlresolvers which is depreciated
  • Change url namespaces for new Django 2 url format.

QA Notes

  • No data migration
  • Low risk
  • No permissions code touched
  • No user facing changes

Documentation

Tech task, no new docs.

Side Effects

None that I know of.

Ticket

https://openscience.atlassian.net/browse/ENG-1392

requirements.txt Outdated Show resolved Hide resolved
@Johnetordoff Johnetordoff changed the title [WIP][ENG-1392] Backwards compatable Django upgrade to 2.0.13 [ENG-1392] Backwards compatable Django upgrade to 2.0.13 Feb 24, 2020
requirements.txt Outdated Show resolved Hide resolved
@corbinSanders
Copy link
Contributor

Looks good besides my one comment!

Copy link
Collaborator

@brianjgeiger brianjgeiger left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

One question

osf/models/collection.py Show resolved Hide resolved
@Johnetordoff Johnetordoff force-pushed the django-upgrade-2.0.13-backwards-compat branch from 334216f to 4df457b Compare May 13, 2020 15:37
@brianjgeiger brianjgeiger merged commit 312c347 into CenterForOpenScience:develop May 18, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants