fix for django 1.10
authorJan Szejko <janek37@gmail.com>
Thu, 13 Apr 2017 11:49:53 +0000 (13:49 +0200)
committerJan Szejko <janek37@gmail.com>
Thu, 13 Apr 2017 11:49:53 +0000 (13:49 +0200)
migdal/admin.py

index 6d4bffe..f9974be 100644 (file)
@@ -18,7 +18,7 @@ class AttachmentInline(admin.TabularInline):
 
 def filtered_entry_admin(typ):
     class EntryAdmin(admin.ModelAdmin):
 
 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):
             return self.model.objects.filter(type=typ.db)
 
         def has_add_permission(self, request):