mirror of
https://github.com/django/django.git
synced 2025-10-23 21:59:11 +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:
@@ -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',)
|
||||
|
||||
|
||||
Reference in New Issue
Block a user