From 2779a04736253bc7a56ac891cd36d0bfce990ad1 Mon Sep 17 00:00:00 2001 From: Jan Szejko Date: Thu, 13 Apr 2017 13:49:53 +0200 Subject: [PATCH] fix for django 1.10 --- migdal/admin.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/migdal/admin.py b/migdal/admin.py index 6d4bffe..f9974be 100644 --- a/migdal/admin.py +++ b/migdal/admin.py @@ -18,7 +18,7 @@ class AttachmentInline(admin.TabularInline): def filtered_entry_admin(typ): class EntryAdmin(admin.ModelAdmin): - def queryset(self, request): + def get_queryset(self, request): return self.model.objects.filter(type=typ.db) def has_add_permission(self, request): -- 2.20.1