Skip to content

Django upgrade#2017

Open
fredkingham wants to merge 7 commits intov0.24.0from
django-upgrade
Open

Django upgrade#2017
fredkingham wants to merge 7 commits intov0.24.0from
django-upgrade

Conversation

@fredkingham
Copy link
Contributor

@fredkingham fredkingham commented Sep 2, 2022

Updates to the Dependency Graph

  • Django: 2.2.16 -> 3.2
  • Django-compressor: 2.4 -> 3.0
  • django-reversion: 3.0.8 -> 4.0.2

More details:
https://github.com/openhealthcare/Development/issues/57

Things to note...
Run tests now needs a secret key for more information see https://docs.djangoproject.com/en/4.1/releases/3.2/#security

Autofield now needs to be declared in settings, for more information see
https://docs.djangoproject.com/en/4.1/releases/3.2/#customizing-type-of-auto-created-primary-keys

staticfiles template library has been removed. We should now use static.
For more information see https://docs.djangoproject.com/en/4.1/releases/3.0/#features-removed-in-3-0
@fredkingham fredkingham changed the base branch from v0.23.0 to v0.23.1 March 6, 2023 16:09
fredkingham added 3 commits March 6, 2023 16:11
The django upgrade did not go out in 0.23 and has been moved into 0.24
this changes the change log/upgrading information from 23 into 0.24 as well.
@fredkingham fredkingham changed the base branch from v0.23.1 to v0.24.0 March 6, 2023 16:26
Put all settings in locals() for our templte context.
"""
return {x: getattr(s, x) for x in dir(s)}
return {x: getattr(s, x) for x in dir(s) if hasattr(s, x)}
Copy link
Member

Choose a reason for hiding this comment

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

Why is this here as part of this PR?

try:
return type(cls._meta.get_field(name))
except models.FieldDoesNotExist:
except FieldDoesNotExist:
Copy link
Member

Choose a reason for hiding this comment

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

Why is this here as part of this PR?

class AbstractDemographicsTestCase(OpalTestCase):
def test_name(self):
d = models.Demographics(first_name='Jane',
d = Demographics(first_name='Jane',
Copy link
Member

Choose a reason for hiding this comment

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

Why is this here as part of this PR?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants