Changes between Initial Version and Version 1 of Ticket #25130


Ignore:
Timestamp:
Jul 15, 2015, 10:17:52 PM (9 years ago)
Author:
Burhan Khalid
Comment:

Legend:

Unmodified
Added
Removed
Modified
  • Ticket #25130

    • Property Resolutioninvalid
    • Property Status newclosed
  • Ticket #25130 – Description

    initial v1  
    1 Similar to how `get_form` allows customization of the admin form, there should be a way to customize the inline admin forms.
    2 
    3 For example, if there is custom validation that needs to be done on the individual inline forms (for example, to raise a `ValidationError`) this cannot be done easily currently.
    4 
    5 I am right now experimenting with `get_formsets_with_inlines` to modify the individual formsets' forms, but this feels very hackish and I'm not sure what other side-effects this will have.
     1After going through the documentation a few more times, the answer is that unlike ModelAdmin, the InlineAdmins have a [`.form` property](https://docs.djangoproject.com/en/1.8/ref/contrib/admin/#django.contrib.admin.InlineModelAdmin.form) that can be used to control which form is being passed to the factory.
Back to Top