Foreign app admin¶
Representation of models in the admin interface.
- class WordAnalyticsAdmin(model, admin_site)¶
Bases:
ModelAdmin
Representation of WordAnalytics in the admin interface.
- list_display = ['word', 'display_count']¶
Fields to display.
- ordering = ['-display_count']¶
Ordering.
- class WordAdmin(model, admin_site)¶
Bases:
ModelAdmin
Representation of WordModel in admin interface.
- list_display = ['id', 'foreign_word', 'native_word', 'created_at', 'category', 'user']¶
Fields to display (list[str]).
- ordering = ['user', 'id']¶
Ordering by fields (list[str]).
- date_hierarchy = 'created_at'¶
Date hierarchy (str).
- class WordCategoryAdmin(model, admin_site)¶
Bases:
ModelAdmin
Representation of WordCategory in admin interface.
- list_display = ['id', 'name', 'user']¶
Fields to display (list[str]).
- ordering = ['user', 'id']¶
Ordering by fields (list[str]).
- class WordSourceAdmin(model, admin_site)¶
Bases:
ModelAdmin
Representation of WordSource in admin interface.
- list_display = ['id', 'name', 'user']¶
Fields to display (list[str]).
- ordering = ['user', 'id']¶
Ordering by fields (list[str]).
- class WordProgressAdmin(model, admin_site)¶
Bases:
ModelAdmin
Representation of WordProgress in admin interface.
- list_display = ['id', 'word', 'user', 'progress']¶
Fields to display (list[str]).
- ordering = ['user', 'word']¶
Ordering by fields (list[str]).
- class WordParamsAdmin(model, admin_site)¶
Bases:
ModelAdmin
Representation of WordParams in the admin interface.
- list_display = ['user', 'language_order', 'timeout', 'favorites', 'category', 'source', 'progress', 'word_count', 'period_start_date', 'period_end_date', 'count_first', 'count_last']¶
Fields to display (list[str]).