-
Notifications
You must be signed in to change notification settings - Fork 87
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
base: v0.24.0
Are you sure you want to change the base?
Django upgrade #2017
Conversation
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
fd245dc
to
a29eed3
Compare
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.
@@ -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)} |
There was a problem hiding this comment.
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: |
There was a problem hiding this comment.
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', |
There was a problem hiding this comment.
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?
Updates to the Dependency Graph
More details:
https://github.com/openhealthcare/Development/issues/57