mirror of
https://github.com/django/django.git
synced 2025-08-04 10:59:45 +00:00
Refs #18012 -- Made proxy and concrete model reverse fields consistent.
Prior to this change proxy models reverse fields didn't include the reverse fields pointing to their concrete model.
This commit is contained in:
parent
211486f3ab
commit
5b980897f2
6 changed files with 113 additions and 14 deletions
|
@ -101,6 +101,10 @@ class ProxyPerson(Person):
|
|||
proxy = True
|
||||
|
||||
|
||||
class PersonThroughProxySubclass(ProxyPerson):
|
||||
pass
|
||||
|
||||
|
||||
class Relating(models.Model):
|
||||
|
||||
# ForeignKey to BasePerson
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue