Opened 12 years ago
Closed 12 years ago
#20883 closed Bug (fixed)
Explicit OneToOneField for multi-table inheritance are not discovered in abstract classes.
| Reported by: | loic84 | Owned by: | loic84 |
|---|---|---|---|
| Component: | Database layer (models, ORM) | Version: | dev |
| Severity: | Normal | Keywords: | |
| Cc: | Triage Stage: | Accepted | |
| Has patch: | yes | Needs documentation: | no |
| Needs tests: | no | Patch needs improvement: | no |
| Easy pickings: | no | UI/UX: | no |
Description
The following example doesn't work:
class Place(models.Model): pass class AbstractRestaurant(models.Model): parent = models.OneToOneField(Place, parent_link=True) class Pizzeria(AbstractRestaurant): pass class Trattoria(AbstractRestaurant): pass
Change History (3)
comment:1 by , 12 years ago
| Has patch: | set |
|---|---|
| Owner: | changed from to |
| Status: | new → assigned |
comment:2 by , 12 years ago
| Triage Stage: | Unreviewed → Accepted |
|---|
comment:3 by , 12 years ago
| Resolution: | → fixed |
|---|---|
| Status: | assigned → closed |
Note:
See TracTickets
for help on using tickets.
PR https://github.com/django/django/pull/1459