diff --git a/extra/modules/root.py b/extra/modules/root.py index 506b89d..dae7daf 100644 --- a/extra/modules/root.py +++ b/extra/modules/root.py @@ -981,7 +981,7 @@ class AlternateRootDirectory(OldRootDirectory): if category.url_name == 'consultations': self.consultations_category = category continue - formdefs = [x for x in all_formdefs if x.category_id == category.id] + formdefs = [x for x in all_formdefs if str(x.category_id) == str(category.id)] formdefs_advertise = [] for formdef in formdefs[:]: @@ -1040,7 +1040,7 @@ class AlternateRootDirectory(OldRootDirectory): return consultations_category = cats[0] formdefs = FormDef.select(lambda x: ( - x.category_id == consultations_category.id and + str(x.category_id) == str(consultations_category.id) and (not x.is_disabled() or x.disabled_redirection)), order_by = 'name') if not formdefs: