sladinji / blousebrothers

https://blousebrothers.fr
Other
1 stars 0 forks source link

Crud PredictionValidation #383

Closed sladinji closed 7 years ago

sladinji commented 7 years ago

Faire une classe PredictionValidationCRUDView inspiré de blousebrothers.confs.crud.TestAnswerCRUDView.

Voir la doc officiel la http://django-angular.readthedocs.io/en/latest/basic-crud-operations.html

Mais pour faire simple, il faut juste faire une fonction get_queryset qui retourne l'objet PredictionValidation.objects.get_or_create(question=question_from_the_id_in_the_request, user=request.user)

Une fois que c'est fait voir avec moi pour l'intégrer à l'interface AngularJS