mirror of
https://github.com/Crocmagnon/charasheet.git
synced 2024-11-22 14:38:03 +01:00
Fix party invite 404
This commit is contained in:
parent
8c7918458a
commit
54c45832cc
1 changed files with 1 additions and 0 deletions
|
@ -17,6 +17,7 @@ class PartyQuerySet(models.QuerySet):
|
||||||
return self.filter(
|
return self.filter(
|
||||||
Q(game_master=user)
|
Q(game_master=user)
|
||||||
| Q(characters__in=Character.objects.filter(player=user))
|
| Q(characters__in=Character.objects.filter(player=user))
|
||||||
|
| Q(invited_characters__in=Character.objects.filter(player=user))
|
||||||
).distinct()
|
).distinct()
|
||||||
|
|
||||||
def invited_to(self, user):
|
def invited_to(self, user):
|
||||||
|
|
Loading…
Reference in a new issue