Opened 4 years ago

Closed 4 years ago

Last modified 4 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 Changed 4 years ago by klee05

Owner: changed from nobody to klee05
Status: newassigned

comment:2 Changed 4 years ago by Tim Graham

Has patch: set
Triage Stage: UnreviewedReady for checkin

comment:3 Changed 4 years ago by Tim Graham <timograham@…>

Resolution: fixed
Status: assignedclosed

In 22bcd3a1:

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

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

In 24066cc4:

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

Backport of 22bcd3a1d88add6e4cf2c4451ede8d1ae142dedd from master

comment:5 Changed 4 years ago by Tim Graham <timograham@…>

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