Fix party invite 404

This commit is contained in:
Gabriel Augendre 2022-11-09 17:38:37 +01:00
parent 8c7918458a
commit 54c45832cc

View file

@ -17,6 +17,7 @@ class PartyQuerySet(models.QuerySet):
return self.filter(
Q(game_master=user)
| Q(characters__in=Character.objects.filter(player=user))
| Q(invited_characters__in=Character.objects.filter(player=user))
).distinct()
def invited_to(self, user):