def init_config(self): self.conf_exclude = get_config('MENU_EXCLUDE') self.conf_open_first_child = get_config('MENU_OPEN_FIRST_CHILD') self.conf_icons = get_config('MENU_ICONS') self.conf_menu = get_config('MENU')
def flat_admin_time(parser, token): return NowNode(get_config('HEADER_TIME_FORMAT'))
def flat_admin_config(name): value = get_config(name) return mark_safe(value) if isinstance(value, str) else value
def flat_admin_date(parser, token): return NowNode(get_config('HEADER_DATE_FORMAT'))