Glossary app models¶
Glossary model module.
- class GlossaryCategory(*args, **kwargs)¶
Bases:
Category
Model of the category of a glossary term.
- class TermSource(*args, **kwargs)¶
Bases:
Source
Model of the source of a glossary term.
- class Glossary(*args, **kwargs)¶
Bases:
Model
Glossary model class.
- progress¶
Numerical representation of study progress.
- get_absolute_url() str ¶
Return url to term detail page.
- class GlossaryParams(*args, **kwargs)¶
Bases:
ExerciseParams
User default settings for selecting terms in an exercise.
- category¶
If a category is selected, term from the specific source will be displayed.
- source¶
If a source is selected, term from the specific source will be displayed.
- count_first¶
Count of first added items (int).
- count_last¶
Count of last added items (int).
- favorites¶
Will be display only favorites items if True, all otherwise (bool).
- period_end_date¶
An end of the period of adding a item to study,
EDGE_PERIOD_CHOICES
(list(tuple[str, str])).
- period_start_date¶
A beginning of the period of adding a item to study,
EDGE_PERIOD_CHOICES
(list(tuple[str, str])).
- progress¶
Current item learning progress level (list[str]).
- timeout¶
Time to display question, sec (int).
- user¶
User that setting model stored (UserApp).