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

已查看 6 次
跳至第一个未读帖子

Django

未读,
2018年3月6日 11:09:312018/3/6
收件人 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

未读,
2018年3月6日 13:26:412018/3/6
收件人 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

未读,
2018年3月13日 12:20:472018/3/13
收件人 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

未读,
2018年3月13日 13:56:292018/3/13
收件人 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

未读,
2018年3月13日 13:56:292018/3/13
收件人 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

未读,
2018年3月13日 13:57:432018/3/13
收件人 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>

回复全部
回复作者
转发
0 个新帖子