mirror of
https://github.com/django/django.git
synced 2025-10-24 06:06:09 +00:00
Fix #13864: Removed database error raised when force_update is requsted on save of an inherited model with no fields of its own. Thanks fva, gregmuellegger, and markb1.
git-svn-id: http://code.djangoproject.com/svn/django/trunk@17088 bcc190cf-cafb-0310-a4f2-bffc1f526a37
This commit is contained in:
@@ -9,6 +9,16 @@ class Counter(models.Model):
|
||||
name = models.CharField(max_length = 10)
|
||||
value = models.IntegerField()
|
||||
|
||||
class InheritedCounter(Counter):
|
||||
tag = models.CharField(max_length=10)
|
||||
|
||||
class ProxyCounter(Counter):
|
||||
class Meta:
|
||||
proxy = True
|
||||
|
||||
class SubCounter(Counter):
|
||||
pass
|
||||
|
||||
class WithCustomPK(models.Model):
|
||||
name = models.IntegerField(primary_key=True)
|
||||
value = models.IntegerField()
|
||||
|
||||
Reference in New Issue
Block a user