commit | 69b3edc7d8359ea942a38c1c3139f09fa2fc7833 | [log] [tgz] |
---|---|---|
author | Zack Williams <zdw@cs.arizona.edu> | Mon Jun 27 08:35:17 2016 -0700 |
committer | Zack Williams <zdw@cs.arizona.edu> | Mon Jun 27 08:35:17 2016 -0700 |
tree | a36832b689cb199e81422bbed01e11668efed2c3 | |
parent | eed4bcfc2fdb17d18c66368da7893904d5a9b823 [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: I168161d352db7f0224323540dfa79a29dd28a47c
diff --git a/xos/admin.py b/xos/admin.py index 0120e66..9ce1bc4 100644 --- a/xos/admin.py +++ b/xos/admin.py
@@ -88,6 +88,7 @@ class Meta: model = VTRTenant + fields = '__all__' class VTRTenantAdmin(ReadOnlyAwareAdmin): list_display = ('backend_status_icon', 'id', 'target', 'test', 'argument' )