Skip to content

Commit

Permalink
Switch order of Group model str representation for easier search (#196)
Browse files Browse the repository at this point in the history
  • Loading branch information
judtinzhang authored Sep 7, 2023
1 parent 7c119e0 commit 660fdf8
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion backend/gsr_booking/models.py
Original file line number Diff line number Diff line change
Expand Up @@ -78,7 +78,7 @@ class Group(models.Model):
MEMBER = "M"

def __str__(self):
return f"{self.pk}: {self.name}"
return f"{self.name}-{self.pk}"

def has_member(self, user):
memberships = GroupMembership.objects.filter(group=self, user=user)
Expand Down

0 comments on commit 660fdf8

Please sign in to comment.