I don't think I've explained myself well enough.

I'm working on a new app. I need to extend the django.contrib.auth.User model 
to include additional fields. What's the best way to do that? One to One 
relationships? I read http://code.djangoproject.com/wiki/ModelInheritance, 
which is in development... But I need a solution now. It references using one 
to one relationships and also using module_name and remove_fields variables in 
the model's META class.... 

So I was wondering what everyone else does and what's generally accepted as 
good practice?

----- Original Message -----
From: Scott McCracken <[EMAIL PROTECTED]>
To: Django users <django-users@googlegroups.com>
Sent: Monday, September 25, 2006 4:07:23 PM GMT-0600
Subject: Re: Extending an existing model?


Edward A. Muller wrote:
> What's the best way to extend an existing model in a new model/app?

Edward, this is a common problem that has a variable solution depending
on your needs. If you don't mind clearing your existing user data, you
can use the reset command on your model:

manage.py reset appname

If your data is important you'll need to use ALTER TABLE statements in
your database. More information can be found in the Django FAQ:

http://www.djangoproject.com/documentation/faq/#if-i-make-changes-to-a-model-how-do-i-update-the-database





-- 
Interlix, LLC
http://interlix.com


--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"Django users" group.
To post to this group, send email to django-users@googlegroups.com
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/django-users
-~----------~----~----~----~------~----~------~--~---

Reply via email to