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

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