missed one place where this is required: fields = '__all__'
Change-Id: I0759c2ab25f2a6ba9175f1b747c4fb5b4692f4d5
Change from Django 1.5 and earlier queryset() to Django 1.6 and later get_queryset()
Change-Id: I4d89d2e2f0c865d44b69fe4e14cf391141432bca
diff --git a/xos/admin.py b/xos/admin.py
index 27d97f9..4901939 100644
--- a/xos/admin.py
+++ b/xos/admin.py
@@ -28,6 +28,7 @@
class Meta:
model = VRouterService
+ fields = '__all__'
class VRouterServiceAdmin(ReadOnlyAwareAdmin):
model = VRouterService
@@ -57,7 +58,7 @@
suit_form_includes = (('vrouteradmin.html', 'top', 'administration'),
) #('hpctools.html', 'top', 'tools') )
- def queryset(self, request):
+ def get_queryset(self, request):
return VRouterService.get_service_objects_by_user(request.user)
class VRouterTenantForm(forms.ModelForm):
@@ -107,7 +108,7 @@
suit_form_tabs = (('general','Details'),)
- def queryset(self, request):
+ def get_queryset(self, request):
return VRouterTenant.get_tenant_objects_by_user(request.user)
admin.site.register(VRouterService, VRouterServiceAdmin)