Explanation

Analytic

english.analytics.english_analytics.collect_statistics(task) None

Add word display to statistics.

Count word display at display_count fild of english.models.word_analytic.WordLearningStories() model.

Parameters

taskenglish.EnglishTranslateExercise

Contain task data.

Models

class english.models.word_analytic.WordLearningStories(*args, **kwargs)

Word learning stories model.

Stores information about the user’s word learning. Related to english.WordModel

Attributes

wordOneToOneField

Word id, relate WordModel.

display_countPositiveSmallIntegerField

The count of displaying specific word to user.

Admin models

class english.admin.WordLearningStoriesAdmin(model, admin_site)

Representation of a WordLearningStoriesAdmin model in the admin interface.

Attributes

list_displaylist[str]

List of model fields.

orderinglist[str]

Sorting by model field (descending list_display, by default).

User settings

class task.models.EnglishTaskSettings(*args, **kwargs)

English learning task user settings model.

Including contains lookup parameters words for learning them.

Attributes

userUserModel

User that setting model stored.

language_orderstr

The order in which translations of words are displayed.

Could be:
  • first the question is in English, then the answer is in Russian;

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

  • random order.

timeoutint

Show the learning word tome.

favoritesbool

Wil be display only favorites words if True, all otherwise.

categoryCategoryModel

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

sourceSourceModel

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

knowledgestr

Current knowledge word level.

word_countstr

The number of words.

date_startstr

Start edge period for choice added words.

date_endstr

Start edge period for choice added words.