mirror of
https://github.com/bookwyrm-social/bookwyrm.git
synced 2025-01-21 14:38:08 +00:00
lint fixes
This commit is contained in:
parent
cdf7775e05
commit
6fde19e9b1
3 changed files with 3 additions and 3 deletions
|
@ -141,7 +141,7 @@ class GroupMemberInvitation(models.Model):
|
|||
# let the other members know about it
|
||||
for membership in self.group.memberships.all():
|
||||
member = membership.user
|
||||
if member != self.user and member != self.group.user:
|
||||
if member not in (self.user, self.group.user):
|
||||
model.objects.create(
|
||||
user=member,
|
||||
related_user=self.user,
|
||||
|
|
Loading…
Reference in a new issue