diff --git a/pgweb/account/admin.py b/pgweb/account/admin.py index beb1a016..1652f368 100644 --- a/pgweb/account/admin.py +++ b/pgweb/account/admin.py @@ -11,6 +11,7 @@ from models import CommunityAuthSite class CommunityAuthSiteAdminForm(forms.ModelForm): class Meta: model = CommunityAuthSite + exclude = () def clean_cryptkey(self): x = None @@ -49,4 +50,4 @@ class PGUserAdmin(UserAdmin): admin.site.register(CommunityAuthSite, CommunityAuthSiteAdmin) admin.site.unregister(User) # have to unregister default User Admin... -admin.site.register(User, PGUserAdmin) # ...in order to add overrides \ No newline at end of file +admin.site.register(User, PGUserAdmin) # ...in order to add overrides diff --git a/pgweb/downloads/admin.py b/pgweb/downloads/admin.py index fdc62531..fcee1d27 100644 --- a/pgweb/downloads/admin.py +++ b/pgweb/downloads/admin.py @@ -33,6 +33,7 @@ duplicate_stackbuilderapp.short_description = "Duplicate application" class StackBuilderAppAdminForm(forms.ModelForm): class Meta: model = StackBuilderApp + exclude = () def clean_textid(self): if not re.match('^[a-z0-9_]*$', self.cleaned_data['textid']): diff --git a/pgweb/events/admin.py b/pgweb/events/admin.py index abf0bc22..8726eb30 100644 --- a/pgweb/events/admin.py +++ b/pgweb/events/admin.py @@ -15,6 +15,7 @@ approve_event.short_description = 'Approve event' class EventAdminForm(forms.ModelForm): class Meta: model = Event + exclude = () def clean(self): cleaned_data = super(EventAdminForm, self).clean()