On Sep 28, 12:16 pm, graeme wrote:
> I need to do one of the following in the admin using Django 1.2:
>
> 1. Validate a value in a form against which objects have been added
> using an inline form.
> 2. Add or delete related objects depending on the value in the main
> model from.
>
> The first would be preferable as the user would be able to decide
> which was wrong and correct it appropriately.
>
> I have tried doing this using the model's clean() method, its save()
> method and a post_save signal. In all cases I cannot get the new
> related objects.
>
> I have thought of using form validation, but I cannot figure out how
> to get the values from the inlines in the validation of the
> ModelAdmin.form.
Have a look at:
http://keokilee.blogspot.com/2010/04/more-django-form-hacking.html
I think it seems related...
--
You received this message because you are subscribed to the Google Groups
"Django users" group.
To post to this group, send email to django-us...@googlegroups.com.
To unsubscribe from this group, send email to
django-users+unsubscr...@googlegroups.com.
For more options, visit this group at
http://groups.google.com/group/django-users?hl=en.