Remove form that no longer does anyting non-default
authorMagnus Hagander <magnus@hagander.net>
Wed, 16 Sep 2020 17:58:30 +0000 (19:58 +0200)
committerMagnus Hagander <magnus@hagander.net>
Wed, 16 Sep 2020 17:59:18 +0000 (19:59 +0200)
pgweb/core/admin.py

index f5aadfe06420e6264dd5c8874923f9cea933f271..e6d6a1c6e04a853074ee30cccd87c4f2f07e98e3 100644 (file)
@@ -7,21 +7,11 @@ from pgweb.core.models import ImportedRSSFeed, ImportedRSSItem
 from pgweb.core.models import ModerationNotification
 
 
-class OrganisationAdminForm(forms.ModelForm):
-    class Meta:
-        model = Organisation
-        exclude = ()
-
-    def __init__(self, *args, **kwargs):
-        super(OrganisationAdminForm, self).__init__(*args, **kwargs)
-
-
 class OrganisationEmailInline(admin.TabularInline):
     model = OrganisationEmail
 
 
 class OrganisationAdmin(admin.ModelAdmin):
-    form = OrganisationAdminForm
     list_display = ('name', 'approved', 'lastconfirmed',)
     list_filter = ('approved',)
     ordering = ('name', )