Glossary app DRF views¶
Glossary¶
Glossary views.
- class GlossaryListCreateAPIView(**kwargs)¶
Bases:
ListCreateAPIView
Create and List Glossary API view.
- serializer_class¶
alias of
GlossarySerializer
- get_queryset() QuerySet ¶
Filter queryset by current user for response.
- perform_create(serializer: GlossarySerializer) None ¶
Add current user to created model instance.
- class GlossaryDetailAPIView(**kwargs)¶
Bases:
RetrieveUpdateDestroyAPIView
Retrieve, update and destroy Glossary term API view.
- serializer_class¶
alias of
GlossarySerializer
- class CategoryTermListCreateAPIView(**kwargs)¶
Bases:
ListCreateAPIView
Create and list Glossary category API View.
- serializer_class¶
alias of
GlossaryCategorySerializer
- get_queryset() None ¶
Get categories only for owner.
- perform_create(serializer: GlossaryCategorySerializer) None ¶
Add current user to created model instance.
- class GlossaryCategoryDetailAPIView(**kwargs)¶
Bases:
RetrieveUpdateDestroyAPIView
Retrieve, update and destroy Glossary category API view.
- serializer_class¶
alias of
GlossaryCategorySerializer
Glossary exercise¶
Glossary exercise view.
- glossary_exercise(request, *args, **kwargs)¶
Render the Glossary exercise.
- glossary_exercise_parameters(request, *args, **kwargs)¶
Glossary exercise parameters view.
GET¶
- View sends a response with
exercise_params
: lookup_conditions
exercise_choices
POST¶
The view updates the
lookup_conditions
in data base.- View sends a response with
- update_term_study_progress(request, *args, **kwargs)¶
Update term study progres.