mezzanine_events/forms.py
def filter(self, qs):
        """
        Filter Events according to the field values.
        """
        categories = self.cleaned_data["categories"]

        if categories:
            qs = qs.filter(event__categories__in=categories)
        return qs

        Filter Events according to the field values.
        
Filter Events according to the field values.
Filter Events according to the field values .
def filter(self, qs):
        categories = self.cleaned_data["categories"]
        if categories:
            qs = qs.filter(event__categories__in=categories)
        return qs
def filter ( self , qs ) : categories = self . cleaned_data [ "categories" ] if categories : qs = qs . filter ( event__categories__in = categories ) return qs
Filter Events according to the field values.
Filter Events according to the field values .
"""
        Filter Events according to the field values.
        """
self
qs