[Django] #29192: Docs on abstract base models say you can't override abstract fields

6 views
Skip to first unread message

Django

unread,
Mar 6, 2018, 11:09:31 AM3/6/18
to django-...@googlegroups.com
#29192: Docs on abstract base models say you can't override abstract fields
------------------------------------------+------------------------
Reporter: Marten Kenbeek | Owner: nobody
Type: Bug | Status: new
Component: Documentation | Version: 2.0
Severity: Normal | Keywords:
Triage Stage: Unreviewed | Has patch: 0
Needs documentation: 0 | Needs tests: 0
Patch needs improvement: 0 | Easy pickings: 0
UI/UX: 0 |
------------------------------------------+------------------------
In the docs on [https://docs.djangoproject.com/en/2.0/topics/db/models
/#abstract-base-classes 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.

--
Ticket URL: <https://code.djangoproject.com/ticket/29192>
Django <https://code.djangoproject.com/>
The Web framework for perfectionists with deadlines.

Django

unread,
Mar 6, 2018, 1:26:41 PM3/6/18
to django-...@googlegroups.com
#29192: Docs on abstract base models say you can't override abstract fields
--------------------------------+--------------------------------------
Reporter: Marten Kenbeek | Owner: klee05
Type: Bug | Status: assigned
Component: Documentation | Version: 2.0
Severity: Normal | Resolution:

Keywords: | Triage Stage: Unreviewed
Has patch: 0 | Needs documentation: 0
Needs tests: 0 | Patch needs improvement: 0
Easy pickings: 0 | UI/UX: 0
--------------------------------+--------------------------------------
Changes (by klee05):

* owner: nobody => klee05
* status: new => assigned


--
Ticket URL: <https://code.djangoproject.com/ticket/29192#comment:1>

Django

unread,
Mar 13, 2018, 12:20:47 PM3/13/18
to django-...@googlegroups.com
#29192: Docs on abstract base models say you can't override abstract fields
-------------------------------------+-------------------------------------

Reporter: Marten Kenbeek | Owner: klee05
Type: Bug | Status: assigned
Component: Documentation | Version: 2.0
Severity: Normal | Resolution:
Keywords: | Triage Stage: Ready for
| checkin
Has patch: 1 | Needs documentation: 0

Needs tests: 0 | Patch needs improvement: 0
Easy pickings: 0 | UI/UX: 0
-------------------------------------+-------------------------------------
Changes (by Tim Graham):

* has_patch: 0 => 1
* stage: Unreviewed => Ready for checkin


Comment:

[https://github.com/django/django/pull/9755 PR]

--
Ticket URL: <https://code.djangoproject.com/ticket/29192#comment:2>

Django

unread,
Mar 13, 2018, 1:56:29 PM3/13/18
to django-...@googlegroups.com
#29192: Docs on abstract base models say you can't override abstract fields
-------------------------------------+-------------------------------------
Reporter: Marten Kenbeek | Owner: klee05
Type: Bug | Status: closed
Component: Documentation | Version: 2.0
Severity: Normal | Resolution: fixed

Keywords: | Triage Stage: Ready for
| checkin
Has patch: 1 | Needs documentation: 0

Needs tests: 0 | Patch needs improvement: 0
Easy pickings: 0 | UI/UX: 0
-------------------------------------+-------------------------------------

Comment (by Tim Graham <timograham@…>):

In [changeset:"24066cc43005eb6c209fe543e1e8d00f730eb50b" 24066cc4]:
{{{
#!CommitTicketReference repository=""
revision="24066cc43005eb6c209fe543e1e8d00f730eb50b"
[2.0.x] Fixed #29192 -- Corrected docs regarding overriding fields from
abstract base classes.

Backport of 22bcd3a1d88add6e4cf2c4451ede8d1ae142dedd from master
}}}

--
Ticket URL: <https://code.djangoproject.com/ticket/29192#comment:4>

Django

unread,
Mar 13, 2018, 1:56:29 PM3/13/18
to django-...@googlegroups.com
#29192: Docs on abstract base models say you can't override abstract fields
-------------------------------------+-------------------------------------
Reporter: Marten Kenbeek | Owner: klee05
Type: Bug | Status: closed
Component: Documentation | Version: 2.0

Severity: Normal | Resolution: fixed
Keywords: | Triage Stage: Ready for
| checkin
Has patch: 1 | Needs documentation: 0

Needs tests: 0 | Patch needs improvement: 0
Easy pickings: 0 | UI/UX: 0
-------------------------------------+-------------------------------------
Changes (by Tim Graham <timograham@…>):

* status: assigned => closed
* resolution: => fixed


Comment:

In [changeset:"22bcd3a1d88add6e4cf2c4451ede8d1ae142dedd" 22bcd3a1]:
{{{
#!CommitTicketReference repository=""
revision="22bcd3a1d88add6e4cf2c4451ede8d1ae142dedd"


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

--
Ticket URL: <https://code.djangoproject.com/ticket/29192#comment:3>

Django

unread,
Mar 13, 2018, 1:57:43 PM3/13/18
to django-...@googlegroups.com
#29192: Docs on abstract base models say you can't override abstract fields
-------------------------------------+-------------------------------------
Reporter: Marten Kenbeek | Owner: klee05
Type: Bug | Status: closed
Component: Documentation | Version: 2.0

Severity: Normal | Resolution: fixed
Keywords: | Triage Stage: Ready for
| checkin
Has patch: 1 | Needs documentation: 0

Needs tests: 0 | Patch needs improvement: 0
Easy pickings: 0 | UI/UX: 0
-------------------------------------+-------------------------------------

Comment (by Tim Graham <timograham@…>):

In [changeset:"fbae9c0e023aea2666feb1603ece172548342ec1" fbae9c0e]:
{{{
#!CommitTicketReference repository=""
revision="fbae9c0e023aea2666feb1603ece172548342ec1"
[1.11.x] Fixed #29192 -- Removed inaccurate statement regarding overriding


fields from abstract base classes.

Partial backport of 22bcd3a1d88add6e4cf2c4451ede8d1ae142dedd from master
}}}

--
Ticket URL: <https://code.djangoproject.com/ticket/29192#comment:5>

Reply all
Reply to author
Forward
0 new messages