#24249 closed Bug (fixed)
Improve forbidding field shadowing in model multi-inheritance
Reported by: | aron45 | Owned by: | nobody |
---|---|---|---|
Component: | Database layer (models, ORM) | Version: | 1.7 |
Severity: | Normal | Keywords: | validation |
Cc: | Triage Stage: | Accepted | |
Has patch: | yes | Needs documentation: | no |
Needs tests: | no | Patch needs improvement: | no |
Easy pickings: | no | UI/UX: | no |
Description
This is a ticket to improve #17673 for multi inheritance of grand father
class GrandFather(models.Model): column1 = models.IntegerField() class Father(GrandFather): column2 = models.IntegerField() class Child(Father): column1 = models.IntegerField() # this should fail, but it does pass.
Change History (5)
comment:1 by , 10 years ago
comment:2 by , 10 years ago
Has patch: | set |
---|---|
Patch needs improvement: | set |
Triage Stage: | Unreviewed → Accepted |
comment:3 by , 10 years ago
Patch needs improvement: | unset |
---|
comment:4 by , 10 years ago
Resolution: | → fixed |
---|---|
Status: | new → closed |
Note:
See TracTickets
for help on using tickets.
https://github.com/django/django/pull/4018