From 1ed08abdb85c7c84d5526c33cdf9d09b3bbe185b Mon Sep 17 00:00:00 2001 From: Ernesto Rico-Schmidt Date: Thu, 31 Mar 2016 20:32:40 +0200 Subject: fixed get_queryset diff --git a/program/admin.py b/program/admin.py index 5faaf4b..e6c331a 100644 --- a/program/admin.py +++ b/program/admin.py @@ -40,9 +40,9 @@ class NoteAdmin(admin.ModelAdmin): ordering = ('timeslot',) save_as = True - def queryset(self, request): + def get_queryset(self, request): shows = request.user.shows.all() - return super(NoteAdmin, self).queryset(request).filter(show__in=shows) + return super(NoteAdmin, self).get_queryset(request).filter(show__in=shows) def formfield_for_foreignkey(self, db_field, request=None, **kwargs): four_weeks = datetime.now() - timedelta(weeks=4) -- cgit v0.10.2