group = models.ForeignKey(Group)

def __str__(self):
    return self.name
_objects = models.Manager()

@property
def objects(self):
    return Department._objects.filter(group__exact=self.group)
Django: writing a manager to filter query set results