On Sun, May 25, 2008 at 10:13 PM, Trevor Caira <[EMAIL PROTECTED]> wrote:
> So while it is possible to do this with model inheritence, at least
> the most obvious solution involves a lot of code duplication.
A situation like this is often an indicator that you haven't
sufficiently abstracted
Thanks for the pointer, Alex. Yes, I have seen that part of the
documentation. Even using model inheritance, however, I still have to
list at a minimum 8 * 12 = 96 different models (8 different versions
of 12 different models). Then, I still must manually specify each
related field, since Django
On Sun, May 25, 2008 at 12:30 AM, Trevor Caira <[EMAIL PROTECTED]> wrote:
> How can I model this situation most simply, and with the least code
> duplication, in django?
Hi Trevor,
Have you looked at the Model Inheritance part of the documentation?
I have a django application which has about a dozen models spread
across 3 applications, and I want to have 8 slightly different
versions of those models (each corresponding to a different user base
which has slightly different requirements).
This includes, in a couple cases, different foreign
4 matches
Mail list logo