Re: Subclassing a model to change field attributes?

2009-09-29 Thread Nan
You're right, it could be done in form validation. I'm not sure why I feel compelled to validate everything at the model (or DB) level. On Sep 29, 3:28 pm, Daniel Roseman wrote: > On Sep 29, 6:53 pm, ringemup wrote: > > > I have two models that are essentially identical except that for one > >

Re: Subclassing a model to change field attributes?

2009-09-29 Thread Daniel Roseman
On Sep 29, 6:53 pm, ringemup wrote: > I have two models that are essentially identical except that for one > of them a couple of the fields can be blank/null that are required in > the other.  It seems silly to maintain two full implementations in > parallel, so I'd like to just make one model a

Subclassing a model to change field attributes?

2009-09-29 Thread ringemup
I have two models that are essentially identical except that for one of them a couple of the fields can be blank/null that are required in the other. It seems silly to maintain two full implementations in parallel, so I'd like to just make one model a subclass of the other. I've looked through th