-
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
Config Order Maintained #375
Conversation
…ts. income_options needs updating.
I think that you need to run |
Using an
Instead I created a custom OrderedJSONField that inherits from JSONField and overrides the serialization and deserialization methods to handle ordered dictionaries. To achieve this, I made changes to the model, serializer, and created a custom field class: Custom OrderedJSONField (fields.py): I created a custom OrderedJSONField class that inherits from Django's Model (models.py): In the model definition, I replaced the default Serializer (serializers.py): In the serializer, I specified the data field as an instance of |
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, but you forgot to run python manage.py makemigrations
.
Release 5/30/2024
@mexi-cano Could you fix the merge conflicts? |
What (if anything) did you refactor?