samluescher / django-form-designer

A Django admin app with a GUI to create complex forms without any programming skills; complete with logging, validation, and redirects.
BSD 3-Clause "New" or "Revised" License
316 stars 149 forks source link

Form admin inline extra inlines #64

Closed llonchj closed 10 years ago

llonchj commented 11 years ago

Fix this use case:


class FormDefinitionTaskAdminInline(admin.StackedInline):
    model = FormDefinitionTask

class MyFormDefinitionAdmin(FormDefinitionAdmin, reversion.VersionAdmin):
    inlines = [FormDefinitionTaskAdminInline] + FormDefinitionAdmin.inlines

admin.site.unregister(FormDefinition)
admin.site.register(FormDefinition, MyFormDefinitionAdmin)