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.

order

The order in which translations of words are displayed.

Could be:
  • first the question in Foreign, then the answer in Native;

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

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

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

has_timeout

Time for user answer, (bool).

is_first

Display first added items (bool).

is_last

Display last added items (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.