-
Notifications
You must be signed in to change notification settings - Fork 0
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
[7782] django upgrade #910
Conversation
a1da0bb
to
fab08a8
Compare
sounds like we maybe should look into getting rid of django-multiselectfield :/ |
fab08a8
to
7976808
Compare
@goapunk it's fixed by adding max_length. |
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, just some questions
some notes:
|
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.
Nice! quick click around and multi select field adding is all working smooth, couple questions but I think it's good to go, as we wait anyway for @goapunk PR will leave merge to him
blank=True, | ||
max_choices=3, | ||
choices=INCLUSIVE_SHAPING_OF_URBAN_LIFE, | ||
) | ||
|
||
facilitative_administration = MultiSelectField( | ||
max_length=120, |
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.
nice that we can keep it for a little longer :)
f370b4a
to
4388a5c
Compare
4388a5c
to
eb22b2b
Compare
@goapunk so we cannot merge yet bcz admin repo salt update messed it up? |
no, should be ok to merge, these kind of changes still work |
eb22b2b
to
a5876d3
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 mostly good to me, just some questions and small notes
requirements/dev.txt
Outdated
@@ -5,5 +5,5 @@ isort==5.12.0 | |||
pytest-cov==4.1.0 | |||
pytest-django==4.6.0 | |||
pytest==7.4.3 | |||
psycopg2-binary==2.9.9 | |||
psycopg-binary==3.1.12 |
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.
need psycopg[binary]== here
requirements/prod.txt
Outdated
@@ -1,2 +1,2 @@ | |||
-r base.txt | |||
psycopg2==2.9.9 | |||
psycopg==3.1.12 |
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.
should now be psycopg[c]==
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.
[c]?
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.
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
Some issues:
django 4.0 set_language doesn't set the user language in request.session (key _language)
django-cps package has not been updated since 2yrs ago and gives deprecation warning:
django-multiselectfield also appears unsupported/dead and gives error with django > 4.0. Fixed by adding max_length in respected models that use MultiSelectField