commit | 3026c520046a4a90fd2d0b99bcc98d7c3bdd6a07 | [log] [tgz] |
---|---|---|
author | Zack Williams <zdw@cs.arizona.edu> | Mon Jun 27 08:30:53 2016 -0700 |
committer | Zack Williams <zdw@cs.arizona.edu> | Mon Jun 27 08:30:53 2016 -0700 |
tree | 1ab69c0100540455aa24b885e700b0feb47b11e2 | |
parent | 4a503b1b222a52d13b9380fbca398d1ef6ac3cf9 [diff] [blame] |
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: I68dd6b8c67a1590f18d4924512319bb32272aa5a
diff --git a/xos/admin.py b/xos/admin.py index fb0f1d7..f7347ae 100644 --- a/xos/admin.py +++ b/xos/admin.py
@@ -45,6 +45,7 @@ class Meta: model = ONOSService + fields = '__all__' class ONOSServiceAdmin(ReadOnlyAwareAdmin): model = ONOSService @@ -103,6 +104,7 @@ class Meta: model = ONOSApp + fields = '__all__' class ONOSAppAdmin(ReadOnlyAwareAdmin): list_display = ('backend_status_icon', 'name', )