HOTFIX: drop authorization inline in resources/admin.py
@@ -9,8 +9,6 @@ from django.utils.translation import ugettext as _
from modeltranslation.admin import TabbedExternalJqueryTranslationAdmin
from TWLight.users.groups import get_coordinators
-from TWLight.users.models import Authorization
-from TWLight.users.forms import AuthorizationForm
from .models import TextFieldTag, Partner, PartnerLogo, Stream, Contact, Language, Video, Suggestion, AccessCode
@@ -48,13 +46,6 @@ class VideoInline(admin.TabularInline):
class PartnerLogoInline(admin.TabularInline):
model = PartnerLogo
-class AuthorizationInline(admin.StackedInline):
- form = AuthorizationForm
- model = Authorization
- fk_name = 'partner'
- extra = 0
-
-
class PartnerAdmin(TabbedExternalJqueryTranslationAdmin):
class CustomModelChoiceField(forms.ModelChoiceField):
"""
@@ -86,7 +77,7 @@ class PartnerAdmin(TabbedExternalJqueryTranslationAdmin):
search_fields = ('company_name',)
list_display = ('company_name', 'short_description', 'id', 'language_strings')
- inlines = [ContactInline, VideoInline, PartnerLogoInline, AuthorizationInline]
+ inlines = [ContactInline, VideoInline, PartnerLogoInline]
admin.site.register(Partner, PartnerAdmin)
