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

Django upgrade #2017

Open
wants to merge 7 commits into
base: v0.24.0
Choose a base branch
from
Open

Django upgrade #2017

wants to merge 7 commits into from

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
@@ -17,7 +17,7 @@ def settings(request):
"""
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?

@@ -87,7 +87,7 @@ def m2m(x):
def _get_field_type(cls, name):
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?

@@ -814,7 +814,7 @@ def test_field_schema(self, patient_list):

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