model: replace contrib's JSONField by a custom one
That uses django.db.models' by default, and fall back to the old contrib one if need be. This later has been deprecated for some time and is now producing errors. Doing this should work in any situation. The migration is actually only a matter of the name of the type in the field metadata, so using a stable one (swh.deposit.model.JSONField) make it backend-agnostic.
Showing
- swh/deposit/migrations/0001_initial.py 3 additions, 1 deletionswh/deposit/migrations/0001_initial.py
- swh/deposit/migrations/0012_deposit_status_detail.py 3 additions, 2 deletionsswh/deposit/migrations/0012_deposit_status_detail.py
- swh/deposit/migrations/0023_alter_deposit_status_detail_alter_deposit_type_and_more.py 35 additions, 0 deletions...lter_deposit_status_detail_alter_deposit_type_and_more.py
- swh/deposit/models.py 16 additions, 1 deletionswh/deposit/models.py
Loading
Please register or sign in to comment