Opened 6 years ago

Closed 6 years ago

Last modified 6 years ago

#29192 closed Bug (fixed)

Docs on abstract base models say you can't override abstract fields

Reported by: Marten Kenbeek Owned by: klee05
Component: Documentation Version: 2.0
Severity: Normal Keywords:
Cc: Triage Stage: Ready for checkin
Has patch: yes Needs documentation: no
Needs tests: no Patch needs improvement: no
Easy pickings: no UI/UX: no

Description

In the docs on abstract base models it says:

It is an error to have fields in the abstract base class with the same name as those in the child (and Django will raise an exception).

This is incorrect since #24305 was fixed.

Change History (5)

comment:1 by klee05, 6 years ago

Owner: changed from nobody to klee05
Status: newassigned

comment:2 by Tim Graham, 6 years ago

Has patch: set
Triage Stage: UnreviewedReady for checkin

comment:3 by Tim Graham <timograham@…>, 6 years ago

Resolution: fixed
Status: assignedclosed

In 22bcd3a1:

Fixed #29192 -- Corrected docs regarding overriding fields from abstract base classes.

comment:4 by Tim Graham <timograham@…>, 6 years ago

In 24066cc4:

[2.0.x] Fixed #29192 -- Corrected docs regarding overriding fields from abstract base classes.

Backport of 22bcd3a1d88add6e4cf2c4451ede8d1ae142dedd from master

comment:5 by Tim Graham <timograham@…>, 6 years ago

In fbae9c0e:

[1.11.x] Fixed #29192 -- Removed inaccurate statement regarding overriding fields from abstract base classes.

Partial backport of 22bcd3a1d88add6e4cf2c4451ede8d1ae142dedd from master

Note: See TracTickets for help on using tickets.
Back to Top