chocapix-server issueshttps://gitlab.binets.fr/camille.masset/chocapix-server/-/issues2019-11-24T18:34:25Zhttps://gitlab.binets.fr/camille.masset/chocapix-server/-/issues/8Reactivate optional development tools2019-11-24T18:34:25ZCamille MASSETReactivate optional development tools- django_extensions
- debug toolbar
- Swagger- django_extensions
- debug toolbar
- SwaggerPython3 and Django 2.2.7Camille MASSETCamille MASSEThttps://gitlab.binets.fr/camille.masset/chocapix-server/-/issues/7Migrate CI config to use python 3 and conda2019-11-24T18:49:30ZCamille MASSETMigrate CI config to use python 3 and condaPython3 and Django 2.2.7Camille MASSETCamille MASSEThttps://gitlab.binets.fr/camille.masset/chocapix-server/-/issues/6Use conda for all possible dependencies2019-11-24T18:32:23ZCamille MASSETUse conda for all possible dependenciesPython3 and Django 2.2.7Camille MASSETCamille MASSEThttps://gitlab.binets.fr/camille.masset/chocapix-server/-/issues/5Upgrade Django to version 2.2.72019-11-24T19:02:02ZCamille MASSETUpgrade Django to version 2.2.7Python3 and Django 2.2.7Camille MASSETCamille MASSEThttps://gitlab.binets.fr/camille.masset/chocapix-server/-/issues/4Upgrade python to version 3.72019-11-24T18:49:26ZCamille MASSETUpgrade python to version 3.7Python3 and Django 2.2.7Camille MASSETCamille MASSEThttps://gitlab.binets.fr/camille.masset/chocapix-server/-/issues/3Upgrade Django to version 2.02019-11-24T18:38:13ZCamille MASSETUpgrade Django to version 2.0Python3 and Django 2.2.7Camille MASSETCamille MASSEThttps://gitlab.binets.fr/camille.masset/chocapix-server/-/issues/2Migrate code base to python 3.52019-11-24T18:31:55ZCamille MASSETMigrate code base to python 3.5Python3 and Django 2.2.7Camille MASSETCamille MASSEThttps://gitlab.binets.fr/camille.masset/chocapix-server/-/issues/1Migrate python dependencies from pip to conda2019-11-24T18:29:57ZCamille MASSETMigrate python dependencies from pip to condaPython3 and Django 2.2.7Camille MASSETCamille MASSEThttps://gitlab.binets.fr/camille.masset/chocapix-server/-/issues/9Refactor serializers to handle default value for `bar`2019-11-24T20:02:03ZCamille MASSETRefactor serializers to handle default value for `bar`With django-rest-framework 3.8, serializers fields with "default" and "read_only" behave differently from before.
As a result, we have to add a function `save()` for each serializer that has a field:
```py
bar = serializers.PrimaryKeyRel...With django-rest-framework 3.8, serializers fields with "default" and "read_only" behave differently from before.
As a result, we have to add a function `save()` for each serializer that has a field:
```py
bar = serializers.PrimaryKeyRelatedField(read_only=True, default=CurrentBarCreateOnlyDefault())
```
so that the field is correctly populated.
Suggested approach: create a mixin `CurrentBarOnCreateMixin` that implements that logic.