(self)
return self.all_groups.filter(group_type=ContactGroup.TYPE_USER_DEFINED)
Define Contact.user_groups to only refer to user groups
Define Contact.user_groups to only refer to user groups
Define Contact . user_groups to only refer to user groups
def user_groups(self):
        """
        Define Contact.user_groups to only refer to user groups
        """
        return self.all_groups.filter(group_type=ContactGroup.TYPE_USER_DEFINED)
def user_groups ( self ) : return self . all_groups . filter ( group_type = ContactGroup . TYPE_USER_DEFINED )