-
Notifications
You must be signed in to change notification settings - Fork 5
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 to 4.2 #2031
Django upgrade to 4.2 #2031
Conversation
fa42c6c
to
1678dae
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.
Thanks for the upgrade :D
Few comments/questions
@@ -61,7 +61,7 @@ x-server: &base_server_setup | |||
|
|||
services: | |||
db: | |||
image: postgis/postgis:11-3.1-alpine | |||
image: postgis/postgis:12-3.4-alpine |
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.
Hey @szabozoltan69, doing this might break current setup. Mabye we should use different directory instead for the data? or use a volume instead?
We will also need to specify how to move data from old db version to new one.
./.db-12/pg:/var/lib/postgresql/data
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.
Great idea! (Maybe I'll use .db/pg-12)
The new db can be done via a dump and a load, like this:
pg_dump -O -c --if-exists -h 127.0.0.1 -U test test > /tmp/testdump.sql
Then the load is via a simple \i ...testdump.sql from the new db.
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... let's add this to PR description as well
api/serializers.py
Outdated
@@ -2061,7 +2061,7 @@ class SearchEmergencySerializer(serializers.Serializer): | |||
class SearchSurgeAlertSerializer(serializers.Serializer): | |||
id = serializers.IntegerField() | |||
name = serializers.CharField() | |||
keywords = serializers.ListField(serializers.CharField()) | |||
keywords = serializers.ListField() |
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.
Hey @szabozoltan69, Any reason why we are removing child definition here?
Maybe we need to use child=serializers.CharField() instead?
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.
Placed back (and the other places also) as
... = serializers.ListField(child=serializers.CharField())
Thanks for the great catches, @thenav56 , all of them are relevant and useful, I'll fix them soon! |
ec97be0
to
9689f73
Compare
9689f73
to
de96934
Compare
a1c0aee
to
bceed17
Compare
admin.site.unregister(Token) | ||
admin.site.register(Token, GoTokenAdmin) | ||
# admin.site.unregister(Token) | ||
# admin.site.register(Token, GoTokenAdmin) |
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.
Is it really removable? So strange...
Also python-magic = "==0.4.27" to packages. |
af36a63
to
490d638
Compare
7dca97b
to
618bf42
Compare
618bf42
to
7806d07
Compare
7806d07
to
8957d47
Compare
Will be closed. |
Refers to #1990