From 1a92969dd32b16a562b86ef87e5ab9ba7e30a1da Mon Sep 17 00:00:00 2001 From: Michael Ziegler Date: Tue, 2 Sep 2014 13:08:46 +0200 Subject: [PATCH] [django 1.7] explicitly add __all__ fields to the admin forms --- pyweb/mumble/forms.py | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/pyweb/mumble/forms.py b/pyweb/mumble/forms.py index f4633a0..d2b9b73 100644 --- a/pyweb/mumble/forms.py +++ b/pyweb/mumble/forms.py @@ -189,8 +189,7 @@ class MumbleAdminForm( MumbleForm ): class Meta: - fields = None - exclude = None + fields = "__all__" def clean_port( self ): """ Check if the port number is valid. """ @@ -227,6 +226,7 @@ class MumbleServerForm( ModelForm ): self.fields["defaultconf"].initial = _("This server is currently offline.") class Meta: + fields = "__all__" model = MumbleServer class MumbleUserForm( ModelForm ): @@ -425,6 +425,7 @@ class MumbleUserAdminForm( PropertyModelForm ): class Meta: model = MumbleUser + fields = "__all__" class MumbleKickForm( Form ):