On 8/30/05, Igor Goryachieff <[EMAIL PROTECTED]> wrote:
> > http://code.djangoproject.com/wiki/ModelInheritance
> 
> This code doesn't work. Is it connected to ticket #122?

Yeah, whoever created that wiki page did it before the model syntax
changed. Here's an official example of subclassing models:

http://www.djangoproject.com/documentation/models/subclassing/

To replace a model that's already been defined, subclass the model to
add/remove fields, and use "replaces_module" META option, like so:

    replaces_module = 'auth.users'

This particular feature is undocumented at this point because it's
quite advanced.

Adrian

-- 
Adrian Holovaty
holovaty.com | djangoproject.com | chicagocrime.org

Reply via email to