From: Guillaume Pellerin Date: Tue, 27 Sep 2016 14:43:28 +0000 (+0200) Subject: Regression on qs X-Git-Url: https://git.parisson.com/?a=commitdiff_plain;h=f8a16eadb494ccf2f3325a444184aa1e7246dc30;p=mezzo.git Regression on qs --- diff --git a/app/organization/core/templatetags/organization_tags.py b/app/organization/core/templatetags/organization_tags.py index 68d6609a..fc8ba6b4 100644 --- a/app/organization/core/templatetags/organization_tags.py +++ b/app/organization/core/templatetags/organization_tags.py @@ -93,15 +93,8 @@ def get_mezzanine_menu_name(menu_id): @register.filter def get_type(objects, type): - print(objects) if objects: - if isinstance(objects, list): - objs = [] - for object in objects: - if obj.type == type: - objs.append(obj) - else: - objs = objects.filter(type=type) + objs = objects.filter(type=type) if objs: return objs return None