Foreign app models

class Word(*args, **kwargs)

Bases: Model

Foreign word translate dictionary.

user

User who studies the word.

mentor

User who added the word.

class WordCategory(*args, **kwargs)

Bases: Category

Model of the category of a foreign word.

class WordSource(*args, **kwargs)

Bases: Source

Model of the source of a foreign word.

class TranslateParams(*args, **kwargs)

Bases: ExerciseParams

Foreign words learning exercise user parameters.

Including contains lookup parameters words for learning them.

language_order

The order in which language translations of words are displayed. Could be:

  • first the question is in Foreign, then the answer is in Native;

  • first the question is in Russian, then the answer is in Native;

  • random order.

category

If a category is selected, words from the specific category will be displayed.

source

If a source is selected, words from the specific source will be displayed.

word_count

Length of verbal expression.

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).

class WordAnalytics(*args, **kwargs)

Bases: Model

Word learning stories model.

Stores information about the user’s word learning.

word

Word ID, relate WordModel.

display_count

The count of displaying specific word to user.