mirror of
https://github.com/django/django.git
synced 2025-11-02 04:48:33 +00:00
Fixed #17717 -- Fixed serialization of proxy models. Thanks, Anssi Kääriäinen.
git-svn-id: http://code.djangoproject.com/svn/django/trunk@17640 bcc190cf-cafb-0310-a4f2-bffc1f526a37
This commit is contained in:
parent
48840cc9d1
commit
dc49e6143a
3 changed files with 20 additions and 5 deletions
|
|
@ -259,6 +259,10 @@ class ExplicitInheritBaseModel(BaseModel):
|
|||
parent = models.OneToOneField(BaseModel)
|
||||
child_data = models.IntegerField()
|
||||
|
||||
class ProxyBaseModel(BaseModel):
|
||||
class Meta:
|
||||
proxy = True
|
||||
|
||||
class LengthModel(models.Model):
|
||||
data = models.IntegerField()
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue