Inline admin forms with dynamically defined initial data

2009-05-16 Thread foxbunny
Hi, all I have three models in many-to-many-through arrangement. Let's call them A, B, C, where B is the join model. I would like to edit B as inline from C, so that the number of inlines and their pre-filled data (if possible at all) matches the number of A objects. If I have, say three object

Inline admin forms

2009-01-02 Thread David Fokkema
Hi group, Right now, we use Django primarily because of the administration panel. It's easy to conjure up some models and then have a nice front end to create and change them. We use it for managing a detector network and I have the following (simplified for the sake of this example) models: cla

Re: How to add custom validation to inline admin forms, overriding clean(self) or clean_FIELD(self) doesn't work.

2008-10-23 Thread Karen Tracey
On Thu, Oct 23, 2008 at 5:09 AM, Jacob Rigby <[EMAIL PROTECTED]> wrote: > > I have a custom ModelForm with a TabularInline child form. I can edit > and save without problems, and simple field validation is working (if > a required field is missing from the inline form it shows a warning). > But w

How to add custom validation to inline admin forms, overriding clean(self) or clean_FIELD(self) doesn't work.

2008-10-23 Thread Jacob Rigby
I have a custom ModelForm with a TabularInline child form. I can edit and save without problems, and simple field validation is working (if a required field is missing from the inline form it shows a warning). But when I try to add custom validation methods to the inline form (in the same way I w