mirror of
https://github.com/bookwyrm-social/bookwyrm.git
synced 2024-11-05 16:39:42 +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,
|
||||
|
|
|
@ -17,4 +17,4 @@
|
|||
has left your group "<a href="{{ group_path }}">{{ group_name }}</a>"
|
||||
{% endblocktrans %}
|
||||
|
||||
{% endblock %}
|
||||
{% endblock %}
|
||||
|
|
|
@ -146,7 +146,7 @@ class Groups(View):
|
|||
user = get_user_from_username(request.user, username)
|
||||
|
||||
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 = {
|
||||
"user": user,
|
||||
|
|
Loading…
Reference in a new issue