Skip to content

Entries published on February 20, 2007

1 entry published on this date. See also: all entries published in February 2007, full archive.

About model subclassing…

In Django 0.90 and 0.91 we offered the ability to subcless models, and a nasty hack called replaces_module which would let you tell Django to use a subclass in place of the original model it was inheriting from. The magic-removal changes broke that ability, and we’ve been slowly working toward getting it back (well, actually Malcolm has been rolling the Sysiphean rock up the hill and the rest of us have mostly been urging him on). I’d say it’s probably tied with automated database migrations as the feature people most often ask for from Django.

I’m not saying we shouldn’t get it working (though I’m sure someone will try to interpret it that way); I think we should and, in fact, I think we have to. But I am going to go out on a limb and say that in the vast majority of cases where people claim to want it, …

Entry published February 20, 2007. Read full entry.