Re: modify attribute on a model based on the other attributes when it is added: model.clean method?

2014-11-17 Thread Collin Anderson
Hi Mike, I'd do it in the model save() method. Collin On Wednesday, November 12, 2014 9:38:10 AM UTC-5, Michael wrote: > > Hi, > > I would like to modify an attribute on a model based on the other > attributes when it is added from the admin or elsewhere. > > For example: > > Model A: >

modify attribute on a model based on the other attributes when it is added: model.clean method?

2014-11-12 Thread Michael
Hi, I would like to modify an attribute on a model based on the other attributes when it is added from the admin or elsewhere. For example: Model A: has FK to Model B has FK to Model C Model B: has FK to Model C When I create a Model A, I choose a Model B so I'd