admin: makes sure category id works as strings in admin (#6315)
This commit is contained in:
parent
0836a81691
commit
3f5d2292e9
|
@ -1348,7 +1348,7 @@ class FormsDirectory(AccessControlled, Directory):
|
|||
one = False
|
||||
formdefs = FormDef.select(order_by='name', ignore_errors=True)
|
||||
for c in cats:
|
||||
l2 = [x for x in formdefs if x.category_id == c.id]
|
||||
l2 = [x for x in formdefs if str(x.category_id) == str(c.id)]
|
||||
l2 = [x for x in l2 if not x.disabled or (x.disabled and x.disabled_redirection)] \
|
||||
+ [x for x in l2 if x.disabled and not x.disabled_redirection]
|
||||
if l2:
|
||||
|
|
Loading…
Reference in New Issue