diff options
-rw-r--r-- | program/admin.py | 4 |
1 files changed, 2 insertions, 2 deletions
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) |