Change from Django 1.5 and earlier queryset() to Django 1.6 and later get_queryset()
Change-Id: I736d8353211ddea3114c870fce60ecec309a3ce3
diff --git a/xos/admin.py b/xos/admin.py
index dce13e8..d80fff2 100644
--- a/xos/admin.py
+++ b/xos/admin.py
@@ -47,7 +47,7 @@
suit_form_includes = (('voltadmin.html', 'top', 'administration'),
) #('hpctools.html', 'top', 'tools') )
- def queryset(self, request):
+ def get_queryset(self, request):
return VOLTService.get_service_objects_by_user(request.user)
class VOLTTenantForm(forms.ModelForm):
@@ -93,7 +93,7 @@
suit_form_tabs = (('general','Details'),)
- def queryset(self, request):
+ def get_queryset(self, request):
return VOLTTenant.get_tenant_objects_by_user(request.user)
class AccessDeviceInline(XOSTabularInline):
@@ -168,7 +168,7 @@
def selflink_reverse_path(self):
return "admin:cord_volttenant_change"
- def queryset(self, request):
+ def get_queryset(self, request):
qs = super(VOLTTenantInline, self).queryset(request)
return qs.filter(kind=VOLT_KIND)
@@ -227,7 +227,7 @@
('tenantrootprivileges','Privileges')
)
- def queryset(self, request):
+ def get_queryset(self, request):
return CordSubscriberRoot.get_tenant_objects_by_user(request.user)
admin.site.register(VOLTService, VOLTServiceAdmin)