1
0
mirror of https://gitlab.crans.org/bde/nk20 synced 2024-12-22 23:42:25 +00:00

[member] tabs --> spaces

This commit is contained in:
Benjamin Graillot 2020-03-25 18:05:46 +01:00
parent c86ddf17ad
commit 59cd166b79

View File

@ -169,7 +169,7 @@ class Membership(models.Model):
def save(self, *args, **kwargs):
if self.club.parent_club is not None:
if not Membership.objects.filter(user=self.user, club=self.club.parent_club):
raise ValidationError(_('User is not a member of the parent club'))
raise ValidationError(_('User is not a member of the parent club'))
super().save(*args, **kwargs)
class Meta: