commit | 6e786a379d48441c240eb203b9738d3d2de82ac0 | [log] [tgz] |
---|---|---|
author | Zack Williams <zdw@cs.arizona.edu> | Mon Jun 27 08:24:06 2016 -0700 |
committer | Zack Williams <zdw@cs.arizona.edu> | Mon Jun 27 08:24:06 2016 -0700 |
tree | 4dfcbb988d14a748476b91f54e5d6b0c9487d046 | |
parent | fed6571e1fd76747cdf3e2d02e029c494ea6c6a7 [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: I065883ce484bd3600b1cb664fd57e1eabb14416d
diff --git a/xos/admin.py b/xos/admin.py index e372a7d..df73ebb 100644 --- a/xos/admin.py +++ b/xos/admin.py
@@ -28,6 +28,7 @@ class Meta: model = FabricService + fields = '__all__' class FabricServiceAdmin(ReadOnlyAwareAdmin): model = FabricService