commit | d7ca08f28f5bb0b209ab74cf365a931c9dd82040 | [log] [tgz] |
---|---|---|
author | Zack Williams <zdw@cs.arizona.edu> | Mon Jun 27 08:32:50 2016 -0700 |
committer | Zack Williams <zdw@cs.arizona.edu> | Mon Jun 27 08:32:50 2016 -0700 |
tree | 5d358a68f136a1d3393483fbd744033d823d6066 | |
parent | 5563f10bdaf5544b3aa7d571731c40d368d50359 [diff] |
Django 1.8 fails with an ImproperlyConfigured exception when `fields` or `exclude` isn't set: ``` class Meta: fields = '__all__' ``` on all descendents of ModelForm. Omitting this is deprecated in 1.7: https://docs.djangoproject.com/en/1.7/topics/forms/modelforms/#selecting-the-fields-to-use Change-Id: I994053b8b18c1de0439242aa45bdf38e5abba630
diff --git a/xos/admin.py b/xos/admin.py index 92fa51d..863bf55 100644 --- a/xos/admin.py +++ b/xos/admin.py
@@ -57,6 +57,7 @@ class Meta: model = VSGService + fields = '__all__' class VSGServiceAdmin(ReadOnlyAwareAdmin): model = VSGService @@ -129,6 +130,7 @@ class Meta: model = VSGTenant + fields = '__all__' class VSGTenantAdmin(ReadOnlyAwareAdmin): list_display = ('backend_status_icon', 'id', 'subscriber_tenant' )