1
0
mirror of https://github.com/django/django.git synced 2025-10-24 14:16:09 +00:00

[soc2009/multidb] Updated contrib.auth User model for multi-db support. Patch from Russell Keith-Magee.

git-svn-id: http://code.djangoproject.com/svn/django/branches/soc2009/multidb@11890 bcc190cf-cafb-0310-a4f2-bffc1f526a37
This commit is contained in:
Alex Gaynor
2009-12-17 16:12:23 +00:00
parent 2a99b2ba5b
commit 3c8c3bd651
3 changed files with 35 additions and 7 deletions

View File

@@ -1,4 +1,5 @@
from django.conf import settings
from django.contrib.auth.models import User
from django.contrib.contenttypes.models import ContentType
from django.contrib.contenttypes import generic
from django.db import models, DEFAULT_DB_ALIAS
@@ -36,3 +37,8 @@ class Author(models.Model):
class Meta:
ordering = ('name',)
class UserProfile(models.Model):
user = models.OneToOneField(User)
flavor = models.CharField(max_length=100)