Hi all;

I'm experimenting with subclassing models at the moment. Specifically, I'm trying to add an optional element to the user class. The following code works fine:

from django.core import meta
from django.models.auth import User

class MyUser(User):
        about = meta.TextField(blank=True, default='')
        class META:
                module_name = 'm_users'

...however, there are already some users in the auth.users table in the database. My question is: is there any easy way to get the new class to retrieve data from the old table, using the default string to populate the /about/ field?

I'm guessing that I could replace the module's get_object() somehow, but I don't really want to if I don't have to.

TIA,

-Andy

Reply via email to