Foreign app DRF views¶
Django REST framework views.
- class WordListCreateAPIView(**kwargs)¶
Bases:
ListCreateAPIView
Create and List Word API view.
- serializer_class¶
alias of
WordSerializer
- get_queryset() QuerySet ¶
Filter queryset by current user.
- perform_create(serializer: WordSerializer) None ¶
Add current user to created model instants.
- class WordDetailAPIView(**kwargs)¶
Bases:
RetrieveUpdateDestroyAPIView
Retrieve, Update and Destroy Word API View.
- serializer_class¶
alias of
WordSerializer
Translate foreign word exercise DRF views.
- params_view(request, *args, **kwargs)¶
Render or save the Translate word exercise params.
- GET method:
Render the exercise_params.
- Fields:
- PUT method:
Save
lookup_conditions
.
- exercise_view(request, *args, **kwargs)¶
Render the Translate foreign word exercise the DRF view.
- update_word_assessment_view(request, *args, **kwargs)¶
Update word study assessment view.