From 1f1e76dce3e3cef4c7f90cd06695dd3e84df5bf0 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Fr=C3=A9d=C3=A9ric=20P=C3=A9ters?= Date: Sun, 14 Jul 2019 20:37:57 +0200 Subject: [PATCH] misc: remove old mobile mode (#25942) --- auquotidien/modules/root.py | 5 ----- 1 file changed, 5 deletions(-) diff --git a/auquotidien/modules/root.py b/auquotidien/modules/root.py index 82047d5..468c3cf 100644 --- a/auquotidien/modules/root.py +++ b/auquotidien/modules/root.py @@ -945,11 +945,6 @@ class AlternateRootDirectory(OldRootDirectory): all_formdefs = FormDef.select(lambda x: not x.is_disabled() or x.disabled_redirection, order_by = 'name') - if get_response().page_template_key == 'mobile': - # if we are in 'mobile' mode, and some formdefs have a 'mobile' - # keyword, we limit the display to those - if any((x for x in all_formdefs if x.keywords and 'mobile' in x.keywords)): - all_formdefs = [x for x in all_formdefs if x.keywords and 'mobile' in x.keywords] if position: t = self.display_list_of_formdefs(