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

Fixed #13432 -- Corrected the logic for router use on OneToOne fields; also added a bunch of tests for OneToOneField queries. Thanks to piquadrat for the report.

git-svn-id: http://code.djangoproject.com/svn/django/trunk@13037 bcc190cf-cafb-0310-a4f2-bffc1f526a37
This commit is contained in:
Russell Keith-Magee
2010-04-28 04:20:35 +00:00
parent 2ebf7fb2b2
commit 848fbdc3e7
3 changed files with 138 additions and 2 deletions

View File

@@ -45,6 +45,9 @@ class Book(models.Model):
ordering = ('title',)
class UserProfile(models.Model):
user = models.OneToOneField(User)
user = models.OneToOneField(User, null=True)
flavor = models.CharField(max_length=100)
class Meta:
ordering = ('flavor',)