stephenmcd/django-forms-builder — pull request #122 by fjsj (2014-04-11 05:24:42+00:00)
Title: Use self.formentry_model in FormAdmin.entries_view instead of FormEntry directly

This small change allows a developer to use your inherit FormAdmin to create a customized one.

Something like this:
```
class FieldAdmin(admin.TabularInline):
model = CustomField
exclude = ('slug', )

class CustomFormAdmin(FormAdmin):
formentry_model = CustomFormEntry
fieldentry_model = CustomFieldEntry
inlines = (FieldAdmin,)
fieldsets = form_admin_fieldsets

admin.site.unregister(Form)
```

This `unregister` at the end seems necessary, even the `forms_builder.forms` isn't added in `INSTALLED_APPS`. Without it, the entries views urls will point to the original app.

The purpose here is to create a new app for customizing your form models, but without rewriting most of the code. My custom models inherit from your abstract ones. Then, I inherited from FormForForm and changed its `Meta` to reference my `CustomFormEntry`.

I also created my own `FormDetail` view, but I believe it is possible to parametrize it to make it compatible with custom models.