summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorErnesto Rico-Schmidt <e.rico.schmidt@gmail.com>2016-03-31 18:32:40 (GMT)
committerErnesto Rico-Schmidt <e.rico.schmidt@gmail.com>2016-03-31 18:32:40 (GMT)
commit1ed08abdb85c7c84d5526c33cdf9d09b3bbe185b (patch)
tree83281fd26754596c1e024f4c8a6b74e1a379fd75
parent39eb8b9fd8b86c6b175bffc5f7f7a175c399e517 (diff)
fixed get_queryset
-rw-r--r--program/admin.py4
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)