1
0
mirror of https://github.com/django/django.git synced 2025-10-31 09:41:08 +00:00

[1.8.x] Fixed #25685 -- Fixed a duplicate query regression on deletion of proxied models.

Thanks to Trac alias ppetrid for the report and Tim for the review.
This commit is contained in:
Simon Charette
2015-11-20 14:18:47 -05:00
parent 2179e5a2bc
commit 7c3ef19978
4 changed files with 22 additions and 2 deletions

View File

@@ -98,6 +98,12 @@ class Avatar(models.Model):
desc = models.TextField(null=True)
# This model is used to test a duplicate query regression (#25685)
class AvatarProxy(Avatar):
class Meta:
proxy = True
class User(models.Model):
avatar = models.ForeignKey(Avatar, null=True)