diff --git a/flashcards/management/commands/notifyusers.py b/flashcards/management/commands/notifyusers.py index deec73a..0b51b60 100644 --- a/flashcards/management/commands/notifyusers.py +++ b/flashcards/management/commands/notifyusers.py @@ -18,4 +18,4 @@ class Command(BaseCommand): notify_list = map(lambda x: x[0], notify_filter) for user in User.objects.filter(pk__in=notify_list): - user[0].notify() + user.notify()