mirror of
https://github.com/django/django.git
synced 2025-10-25 06:36:07 +00:00
Fixed #12247 -- Corrected the way update queries are processed when the update only refers to attributes on a base class. Thanks to jsmullyan for the report, and matiasb for the fix.
git-svn-id: http://code.djangoproject.com/svn/django/trunk@12910 bcc190cf-cafb-0310-a4f2-bffc1f526a37
This commit is contained in:
@@ -21,6 +21,19 @@ class RelatedPoint(models.Model):
|
||||
return unicode(self.name)
|
||||
|
||||
|
||||
class A(models.Model):
|
||||
x = models.IntegerField(default=10)
|
||||
|
||||
class B(models.Model):
|
||||
a = models.ForeignKey(A)
|
||||
y = models.IntegerField(default=10)
|
||||
|
||||
class C(models.Model):
|
||||
y = models.IntegerField(default=10)
|
||||
|
||||
class D(C):
|
||||
a = models.ForeignKey(A)
|
||||
|
||||
__test__ = {'API_TESTS': """
|
||||
>>> DataPoint(name="d0", value="apple").save()
|
||||
>>> DataPoint(name="d2", value="banana").save()
|
||||
|
||||
Reference in New Issue
Block a user