mirror of
https://github.com/django/django.git
synced 2025-10-24 06:06:09 +00:00
Fixed #13513 -- Ensured that queries collecting deleted objects are issued on the right database, especially when dealing with m2m intermediate tables. Thanks to gavoja for the report.
git-svn-id: http://code.djangoproject.com/svn/django/trunk@13232 bcc190cf-cafb-0310-a4f2-bffc1f526a37
This commit is contained in:
@@ -44,6 +44,16 @@ class Book(models.Model):
|
||||
class Meta:
|
||||
ordering = ('title',)
|
||||
|
||||
class Pet(models.Model):
|
||||
name = models.CharField(max_length=100)
|
||||
owner = models.ForeignKey(Person)
|
||||
|
||||
def __unicode__(self):
|
||||
return self.name
|
||||
|
||||
class Meta:
|
||||
ordering = ('name',)
|
||||
|
||||
class UserProfile(models.Model):
|
||||
user = models.OneToOneField(User, null=True)
|
||||
flavor = models.CharField(max_length=100)
|
||||
|
||||
Reference in New Issue
Block a user