-
Notifications
You must be signed in to change notification settings - Fork 6
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
[7777] django upgrade from 3.2.x to 4.2 #5309
Conversation
8e03616
to
647edfd
Compare
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.
LGTM so far, just a small note about the form_valid
change
647edfd
to
ccbb047
Compare
20a17a1
to
c37da86
Compare
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.
small note about psycopg
also: do we need to fix the save()
method of the models as described here: https://docs.djangoproject.com/en/4.2/releases/4.2/#setting-update-fields-in-model-save-may-now-be-required ?
c37da86
to
641e87f
Compare
some notes:
|
The votes save() are not called for updating, it's to generate tokens. So they don't need the update_fields. |
@goapunk now there is an error with duplicate email constrains, from psycopg for the test that checks signup with existing email. I could inherit from allauth SignUp view/form and handle the exception. But I also tried to bump allauth to latest version, and servicekonto gave new errors. So yes good to ask Caroline, and if the servicekonto is still in use, we need to make it work with latest allauth. |
9cc4cac
to
0e46030
Compare
@m4ra there is one instance of |
0528c84
to
4f4f55b
Compare
876ff28
to
13e2d79
Compare
@@ -62,6 +63,7 @@ class ProjectSerializer(serializers.ModelSerializer, CommonFields): | |||
title = serializers.SerializerMethodField() | |||
type = serializers.SerializerMethodField() | |||
url = serializers.SerializerMethodField() | |||
topics = serializers.SerializerMethodField() |
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.
This was all just hacked together to test, I think having aTopicsSerializer
which we add here instead of the function would probably be nice ?
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.
true
34467c5
to
e27d5b7
Compare
@@ -58,6 +82,7 @@ def save(self, commit=True): | |||
plan.group = group | |||
if commit: | |||
plan.save() | |||
self._save_m2m() |
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.
@goapunk I am changing self
to plan
for better readability
e27d5b7
to
b5d8284
Compare
apps/plans: migrate topics for plans
b5d8284
to
344ca63
Compare
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.
looks good to me!
Tasks