Révision 1f1e76dc
Ajouté par Frédéric Péters il y a presque 5 ans
auquotidien/modules/root.py | ||
---|---|---|
945 | 945 |
|
946 | 946 |
all_formdefs = FormDef.select(lambda x: not x.is_disabled() or x.disabled_redirection, |
947 | 947 |
order_by = 'name') |
948 |
if get_response().page_template_key == 'mobile': |
|
949 |
# if we are in 'mobile' mode, and some formdefs have a 'mobile' |
|
950 |
# keyword, we limit the display to those |
|
951 |
if any((x for x in all_formdefs if x.keywords and 'mobile' in x.keywords)): |
|
952 |
all_formdefs = [x for x in all_formdefs if x.keywords and 'mobile' in x.keywords] |
|
953 | 948 |
|
954 | 949 |
if position: |
955 | 950 |
t = self.display_list_of_formdefs( |
Formats disponibles : Unified diff
misc: remove old mobile mode (#25942)