Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- 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)
Advertisement
Add Comment
Please, Sign In to add comment