Fixes typo in group notification

This commit is contained in:
Mouse Reeve 2022-07-06 14:31:53 -07:00
parent 2cda9d5567
commit dda6126329
2 changed files with 1 additions and 2 deletions

View file

@ -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(

View file

@ -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