[Django] #32271: Documentation consistency between display views and edit views

6 views
Skip to first unread message

Django

unread,
Dec 15, 2020, 11:15:33 AM12/15/20
to django-...@googlegroups.com
#32271: Documentation consistency between display views and edit views
------------------------------------------------+------------------------
Reporter: Carles Pina Estany | Owner: nobody
Type: Cleanup/optimization | Status: new
Component: Documentation | Version: 3.1
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 "generic display views" (https://docs.djangoproject.com/en/3.1/ref
/class-based-views/generic-
display/#django.views.generic.detail.DetailView) the example is:

{{{
class ArticleDetailView(DetailView):
}}}

In the "Generic editing views" (https://docs.djangoproject.com/en/3.1/ref
/class-based-views/generic-
editing/#django.views.generic.edit.CreateView.template_name_suffix) the
example is:

{{{
class AuthorCreate(CreateView):
}}}

(note that there is no `View` after `AuthorCreate`, like it was in the
`ArticleDetailView` example)

I was expecting it to be either:


{{{
class ArticleDetailView(DetailView)

class AuthorCreateView(CreateView)
}}}

or:
{{{
class ArticleDetail(DetailView)

class AuthorCreate(CreateView)
}}}

I'm happy to do a PR of any of the options. I'm slightly inclined for the
second one to keep it short and because usually these classes are in
`views.py`.

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

Django

unread,
Dec 17, 2020, 2:07:17 AM12/17/20
to django-...@googlegroups.com
#32271: Documentation consistency between display views and edit views
-------------------------------------+-------------------------------------
Reporter: Carles Pina Estany | Owner: Carles
Type: | Pina Estany
Cleanup/optimization | Status: assigned
Component: Documentation | Version: 3.1
Severity: Normal | Resolution:
Keywords: | Triage Stage: Accepted

Has patch: 0 | Needs documentation: 0
Needs tests: 0 | Patch needs improvement: 0
Easy pickings: 0 | UI/UX: 0
-------------------------------------+-------------------------------------
Changes (by Carlton Gibson):

* owner: nobody => Carles Pina Estany
* status: new => assigned
* stage: Unreviewed => Accepted


Comment:

Hi Carles. Yes, OK… 😄 I think this fits under the small cosmetic changes
not needing a ticket. If you'd like to make a PR `Fixed #32271 -- Improved
naming consistency in CBV code examples.` then that would be great.

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

Django

unread,
Dec 18, 2020, 10:51:37 AM12/18/20
to django-...@googlegroups.com
#32271: Documentation consistency between display views and edit views
-------------------------------------+-------------------------------------
Reporter: Carles Pina Estany | Owner: Carles
Type: | Pina Estany
Cleanup/optimization | Status: assigned
Component: Documentation | Version: 3.1

Severity: Normal | Resolution:
Keywords: | Triage Stage: Accepted
Has patch: 0 | Needs documentation: 0
Needs tests: 0 | Patch needs improvement: 0
Easy pickings: 0 | UI/UX: 0
-------------------------------------+-------------------------------------

Comment (by Carles Pina Estany):

Thanks Carlton, I'll do it!

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

Django

unread,
Jan 12, 2021, 5:31:59 AM1/12/21
to django-...@googlegroups.com
#32271: Documentation consistency between display views and edit views
-------------------------------------+-------------------------------------
Reporter: Carles Pina Estany | Owner: Carles
Type: | Pina Estany
Cleanup/optimization | Status: assigned
Component: Documentation | Version: 3.1

Severity: Normal | Resolution:
Keywords: | Triage Stage: Accepted
Has patch: 1 | Needs documentation: 0
Needs tests: 0 | Patch needs improvement: 1

Easy pickings: 0 | UI/UX: 0
-------------------------------------+-------------------------------------
Changes (by Carlton Gibson):

* needs_better_patch: 0 => 1
* has_patch: 0 => 1


Comment:

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

Hey Carles. I see you're midway through. 👍 Please uncheck ''Patch needs
improvement'' when it's finished and you're ready for review. Thanks.

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

Django

unread,
Feb 11, 2021, 5:22:39 PM2/11/21
to django-...@googlegroups.com
#32271: Documentation consistency between display views and edit views
--------------------------------------+------------------------------------
Reporter: Carles Pina Estany | Owner: (none)

Type: Cleanup/optimization | Status: new
Component: Documentation | Version: 3.1
Severity: Normal | Resolution:
Keywords: | Triage Stage: Accepted
Has patch: 1 | Needs documentation: 0
Needs tests: 0 | Patch needs improvement: 1
Easy pickings: 1 | UI/UX: 0
--------------------------------------+------------------------------------
Changes (by David Smith):

* owner: Carles Pina Estany => (none)
* status: assigned => new
* easy: 0 => 1


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

Django

unread,
Mar 1, 2021, 11:09:09 AM3/1/21
to django-...@googlegroups.com
#32271: Documentation consistency between display views and edit views
--------------------------------------+------------------------------------
Reporter: Carles Pina Estany | Owner: (none)

Type: Cleanup/optimization | Status: new
Component: Documentation | Version: 3.1
Severity: Normal | Resolution:
Keywords: | Triage Stage: Accepted
Has patch: 1 | Needs documentation: 0
Needs tests: 0 | Patch needs improvement: 1
Easy pickings: 1 | UI/UX: 0
--------------------------------------+------------------------------------

Comment (by Jack Aitken):

Replying to [comment:3 Carlton Gibson]:

Hi Carlton, is this still open or does it need work? Happy to help.

> [https://github.com/django/django/pull/13869 PR]
>
> Hey Carles. I see you're midway through. 👍 Please uncheck ''Patch needs
improvement'' when it's finished and you're ready for review. Thanks.

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

Django

unread,
Mar 1, 2021, 2:03:07 PM3/1/21
to django-...@googlegroups.com
#32271: Documentation consistency between display views and edit views
--------------------------------------+------------------------------------
Reporter: Carles Pina Estany | Owner: (none)

Type: Cleanup/optimization | Status: new
Component: Documentation | Version: 3.1
Severity: Normal | Resolution:
Keywords: | Triage Stage: Accepted
Has patch: 1 | Needs documentation: 0
Needs tests: 0 | Patch needs improvement: 1
Easy pickings: 1 | UI/UX: 0
--------------------------------------+------------------------------------

Comment (by David Smith):

Hi Jack -- there was work done on the pr I've linked below, but the
comments made on the PR need addressing. If you have capacity to finish
this off that would be great.

https://github.com/django/django/pull/13869

--
Ticket URL: <https://code.djangoproject.com/ticket/32271#comment:6>

Django

unread,
Mar 1, 2021, 4:04:51 PM3/1/21
to django-...@googlegroups.com
#32271: Documentation consistency between display views and edit views
--------------------------------------+------------------------------------
Reporter: Carles Pina Estany | Owner: (none)

Type: Cleanup/optimization | Status: new
Component: Documentation | Version: 3.1
Severity: Normal | Resolution:
Keywords: | Triage Stage: Accepted
Has patch: 1 | Needs documentation: 0
Needs tests: 0 | Patch needs improvement: 1
Easy pickings: 1 | UI/UX: 0
--------------------------------------+------------------------------------

Comment (by Jack Aitken):

Replying to [comment:6 David Smith]:

Thanks, David. I've been reviewing the history and it looks like there
were some comments by Mariusz regarding the previous commit. Here's what I
can gather from those comments about what should be left alone:

1. Examples in the tutorials (tutorial04.txt and tutorial05.txt) should be
left alone.
2. HomePageTemplateView should be left as HomePageView.
3. AboutView should remain as AboutView

Otherwise, I can go through the changes that Carles made create a new PR,
if this is all agreeable to you.

--
Ticket URL: <https://code.djangoproject.com/ticket/32271#comment:7>

Django

unread,
Mar 1, 2021, 6:15:43 PM3/1/21
to django-...@googlegroups.com
#32271: Documentation consistency between display views and edit views
--------------------------------------+------------------------------------
Reporter: Carles Pina Estany | Owner: (none)

Type: Cleanup/optimization | Status: new
Component: Documentation | Version: 3.1
Severity: Normal | Resolution:
Keywords: | Triage Stage: Accepted
Has patch: 1 | Needs documentation: 0
Needs tests: 0 | Patch needs improvement: 1
Easy pickings: 1 | UI/UX: 0
--------------------------------------+------------------------------------

Comment (by Carles Pina Estany):

Thanks Jack for continuing the PR! Really appreciate the continuation :)

--
Ticket URL: <https://code.djangoproject.com/ticket/32271#comment:8>

Django

unread,
Mar 1, 2021, 6:43:02 PM3/1/21
to django-...@googlegroups.com
#32271: Documentation consistency between display views and edit views
--------------------------------------+------------------------------------
Reporter: Carles Pina Estany | Owner: (none)

Type: Cleanup/optimization | Status: new
Component: Documentation | Version: 3.1
Severity: Normal | Resolution:
Keywords: | Triage Stage: Accepted
Has patch: 1 | Needs documentation: 0
Needs tests: 0 | Patch needs improvement: 1
Easy pickings: 1 | UI/UX: 0
--------------------------------------+------------------------------------

Comment (by Jack Aitken):

It's my pleasure, Carles!

PR was made. Here is the link:
[https://github.com/django/django/pull/14069]

--
Ticket URL: <https://code.djangoproject.com/ticket/32271#comment:9>

Django

unread,
Mar 2, 2021, 2:35:25 AM3/2/21
to django-...@googlegroups.com
#32271: Documentation consistency between display views and edit views
-------------------------------------+-------------------------------------
Reporter: Carles Pina Estany | Owner: (none)
Type: | Status: new
Cleanup/optimization |
Component: Documentation | Version: 3.1
Severity: Normal | Resolution:
Keywords: | Triage Stage: Ready for
| checkin
Has patch: 1 | Needs documentation: 0

Needs tests: 0 | Patch needs improvement: 0
Easy pickings: 1 | UI/UX: 0
-------------------------------------+-------------------------------------
Changes (by Mariusz Felisiak):

* needs_better_patch: 1 => 0
* stage: Accepted => Ready for checkin


--
Ticket URL: <https://code.djangoproject.com/ticket/32271#comment:10>

Django

unread,
Mar 2, 2021, 3:02:15 AM3/2/21
to django-...@googlegroups.com
#32271: Documentation consistency between display views and edit views
-------------------------------------+-------------------------------------
Reporter: Carles Pina Estany | Owner: Mariusz
Type: | Felisiak <felisiak.mariusz@…>
Cleanup/optimization | Status: closed
Component: Documentation | Version: 3.1
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: 1 | UI/UX: 0
-------------------------------------+-------------------------------------
Changes (by Mariusz Felisiak <felisiak.mariusz@…>):

* owner: (none) => Mariusz Felisiak <felisiak.mariusz@…>
* status: new => closed
* resolution: => fixed


Comment:

In [changeset:"5fd4f22d196fbe9913884259ddedad10e6156a44" 5fd4f22]:
{{{
#!CommitTicketReference repository=""
revision="5fd4f22d196fbe9913884259ddedad10e6156a44"
Fixed #32271 -- Improved consistency of docs CBV examples.

Co-Authored-By: Carles Pina i Estany <car...@pina.cat>
}}}

--
Ticket URL: <https://code.djangoproject.com/ticket/32271#comment:11>

Django

unread,
Mar 2, 2021, 3:02:35 AM3/2/21
to django-...@googlegroups.com
#32271: Documentation consistency between display views and edit views
-------------------------------------+-------------------------------------
Reporter: Carles Pina Estany | Owner: Mariusz
Type: | Felisiak <felisiak.mariusz@…>
Cleanup/optimization | Status: closed
Component: Documentation | Version: 3.1

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: 1 | UI/UX: 0
-------------------------------------+-------------------------------------

Comment (by Mariusz Felisiak <felisiak.mariusz@…>):

In [changeset:"9f277c3a7c5c60b749899d46a0aeb0e22c2b3d28" 9f277c3a]:
{{{
#!CommitTicketReference repository=""
revision="9f277c3a7c5c60b749899d46a0aeb0e22c2b3d28"
[3.2.x] Fixed #32271 -- Improved consistency of docs CBV examples.

Co-Authored-By: Carles Pina i Estany <car...@pina.cat>

Backport of 5fd4f22d196fbe9913884259ddedad10e6156a44 from master
}}}

--
Ticket URL: <https://code.djangoproject.com/ticket/32271#comment:12>

Reply all
Reply to author
Forward
0 new messages