Re: validate changes in m2m field in admin panel

2011-02-11 Thread bagheera
Dnia 11-02-2011 o 19:36:16 Piotr Zalewa napisaƂ(a): I would use signals for that purpose On 11-02-11 10:18, bagheera wrote: Hi, i would like to perform validation on m2m field to control, if user made any changes. I'd like to disallow removing relations from m2m field, only adding them.

Re: validate changes in m2m field in admin panel

2011-02-11 Thread Piotr Zalewa
I would use signals for that purpose On 11-02-11 10:18, bagheera wrote: Hi, i would like to perform validation on m2m field to control, if user made any changes. I'd like to disallow removing relations from m2m field, only adding them. example: model Product(models.Model): name = models.

validate changes in m2m field in admin panel

2011-02-11 Thread bagheera
Hi, i would like to perform validation on m2m field to control, if user made any changes. I'd like to disallow removing relations from m2m field, only adding them. example: model Product(models.Model): name = models.TextField() model Order(models.Model): products = models.Man