mirror of
https://github.com/bookwyrm-social/bookwyrm.git
synced 2025-01-21 22:48: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
|
# let the other members know about it
|
||||||
for membership in self.group.memberships.all():
|
for membership in self.group.memberships.all():
|
||||||
member = membership.user
|
member = membership.user
|
||||||
if member != self.user and member != self.group.user:
|
if member not in (self.user, self.group.user):
|
||||||
model.objects.create(
|
model.objects.create(
|
||||||
user=member,
|
user=member,
|
||||||
related_user=self.user,
|
related_user=self.user,
|
||||||
|
|
|
@ -146,7 +146,7 @@ class Groups(View):
|
||||||
user = get_user_from_username(request.user, username)
|
user = get_user_from_username(request.user, username)
|
||||||
|
|
||||||
paginated = Paginator(
|
paginated = Paginator(
|
||||||
models.Group.memberships.filter(user=user).order_by("-created_date"), PAGE_LENGTH
|
models.Group.memberships.filter(user=user).order_by("-created_date"), PAGE_LENGTH
|
||||||
)
|
)
|
||||||
data = {
|
data = {
|
||||||
"user": user,
|
"user": user,
|
||||||
|
|
Loading…
Reference in a new issue