K
Size: a a a
K
K
K
QL
K
QL
K
class Group_View(CustomView):
column_labels = dict(rate=u'Рейт', name=u'Название группы', tutors=u'Преподователь', visits=u'Посещения', clients=u'Клиенты', complex_abon=u'Комплексный абонемент', previous_month=u'Прошлый месяц', current_month=u'Текущий месяц', count_people_new=u'Количество пришедших NEW', count_stayed_new=u'Количество оставшихся NEW', count_left=u'Количество ушедших', total_sum=u'Общая сумма', retention_total=u'Удержания Total', retention_new=u'Удержания New', bonus_for_retention_total=u'Бонус за удержание Total')
column_list = ['name', 'rate', 'total_sum', 'retention_total', 'retention_new', 'bonus_for_retention_total', 'could_earn_for_the_departed', 'could_earn_for_newcomers_not_remaining', 'bonus_for_retention_new', 'tutors']
column_sortable_list = ['tutors']
column_filters = ('tutors',)
# column_display_pk = True
@app.context_processor
def inject_var():
home = 'На главную'
link_to_index = '/'
return dict(Home= home, Link1=link_to_index)
class ScreenAdmin(sqla.ModelView):
""" Flask-admin can not automatically find a hybrid_property yet. You will
need to manually define the column in list_view/filters/sorting/etc."""
column_list = ['id', 'width', 'height', 'number_of_pixels']
column_sortable_list = ['id', 'width', 'height', 'number_of_pixels']
# Flask-admin can automatically detect the relevant filters for hybrid properties.
column_filters = ('number_of_pixels', )
AttributeError: tutors
K
K
K
QL
K
K
K
K
NS
K
NS
K