mirror of
https://github.com/django/django.git
synced 2025-10-24 06:06:09 +00:00
Fixed #11120 -- Corrected handling of inlines attached to inherited classes, broken by r10756. Thanks to George Song and Michael Strickland for the simultaneous reports.
git-svn-id: http://code.djangoproject.com/svn/django/trunk@10787 bcc190cf-cafb-0310-a4f2-bffc1f526a37
This commit is contained in:
@@ -7,3 +7,13 @@ class User(models.Model):
|
||||
class UserSite(models.Model):
|
||||
user = models.ForeignKey(User, to_field="username")
|
||||
data = models.IntegerField()
|
||||
|
||||
class Place(models.Model):
|
||||
name = models.CharField(max_length=50)
|
||||
|
||||
class Restaurant(Place):
|
||||
pass
|
||||
|
||||
class Manager(models.Model):
|
||||
retaurant = models.ForeignKey(Restaurant)
|
||||
name = models.CharField(max_length=50)
|
||||
|
||||
Reference in New Issue
Block a user