Change from Django 1.5 and earlier queryset() to Django 1.6 and later get_queryset()
Change-Id: I9618b07afce56cd7971bf37710611707a0fca6f2
diff --git a/xos/admin.py b/xos/admin.py
index f4bf20d..829f7f1 100644
--- a/xos/admin.py
+++ b/xos/admin.py
@@ -56,7 +56,7 @@
'administration'),
)
- def queryset(self, request):
+ def get_queryset(self, request):
return ExampleService.get_service_objects_by_user(request.user)
admin.site.register(ExampleService, ExampleServiceAdmin)
@@ -111,7 +111,7 @@
suit_form_tabs = (('general', 'Details'),)
- def queryset(self, request):
+ def get_queryset(self, request):
return ExampleTenant.get_tenant_objects_by_user(request.user)
admin.site.register(ExampleTenant, ExampleTenantAdmin)