mirror of
https://github.com/bookwyrm-social/bookwyrm.git
synced 2024-12-23 00:26:33 +00:00
Fixes typo in group notification
This commit is contained in:
parent
2cda9d5567
commit
dda6126329
2 changed files with 1 additions and 2 deletions
|
@ -280,7 +280,6 @@ class GroupViews(TestCase):
|
|||
self.assertEqual(notification.related_group, self.testgroup)
|
||||
self.assertEqual(notification.notification_type, "LEAVE")
|
||||
|
||||
|
||||
def test_accept_membership(self, _):
|
||||
"""accept an invite"""
|
||||
models.GroupMemberInvitation.objects.create(
|
||||
|
|
|
@ -244,7 +244,7 @@ def remove_member(request):
|
|||
|
||||
memberships = models.GroupMember.objects.filter(group=group)
|
||||
model = apps.get_model("bookwyrm.Notification", require_ready=True)
|
||||
notification_type = models.LEAVE if user == request.user else model.REMOVE
|
||||
notification_type = model.LEAVE if user == request.user else model.REMOVE
|
||||
# let the other members know about it
|
||||
for membership in memberships:
|
||||
member = membership.user
|
||||
|
|
Loading…
Reference in a new issue