From: Jan Szejko Date: Thu, 13 Apr 2017 11:49:53 +0000 (+0200) Subject: fix for django 1.10 X-Git-Tag: 0.7.3~2 X-Git-Url: https://git.mdrn.pl/django-migdal.git/commitdiff_plain/2779a04736253bc7a56ac891cd36d0bfce990ad1?ds=inline fix for django 1.10 --- 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):