Hello,

I need to do both form level  and model level validation (my app will be
called by XML-RPC and it will also be used with the normal admin GUI) on a
m2m relation.

The problem is that I have a m2m between "Items" and "Categories",
"Categories" are organized in a tree with MPTT django-mptt. I want to avoid
that "Items" are assigned to non-leaf "Categories".

It seems like "save_m2m" (for forms) and "add" (for models) are created at
runtime and it's not easy to override them.

I'm using latest trunk and google'd searching for a solution, before going
down to the DB level with some triggers and checks, does anybody have any
idea or suggestion about if and how this could be done?


-- 
Alessandro Pasotti
w3:   www.itopen.it

-- 
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.

Reply via email to