Opened 2 years ago

Closed 2 years ago

Last modified 2 years ago

#19283 closed Bug (fixed)

Django CBV examples have broken import.

Reported by: pydanny Owned by: pydanny
Component: Documentation Version: master
Severity: Normal Keywords:
Cc: Triage Stage: Accepted
Has patch: no Needs documentation: no
Needs tests: no Patch needs improvement: no
Easy pickings: yes UI/UX: no

Description (last modified by aaugustin)

In several places it is from django import models.

It is supposed to be from django.db import models.

Change History (8)

comment:1 Changed 2 years ago by pydanny

  • Needs documentation unset
  • Needs tests unset
  • Patch needs improvement unset
  • Summary changed from Django CBV editing examples have broken import. to Django CBV examples have broken import.

comment:2 Changed 2 years ago by ssidorenko

I cannot find the problem you are describing, can you post a link or a path where it can be found ?

comment:3 Changed 2 years ago by ptone

  • Triage Stage changed from Unreviewed to Accepted
  • Type changed from Uncategorized to Bug
  • Version changed from 1.4 to master

For sure they're there

element:docs (master)$ ack -a 'from django import models'
./ref/class-based-views/generic-editing.txt
19:        from django import models

./topics/class-based-views/generic-editing.txt
93:    from django import models
163:    from django import models
element:docs (master)$ 

comment:4 follow-up: Changed 2 years ago by ssidorenko

Oh ok, i was grepping for "djangoimport" actually. Can the description of the bug be updated ?

comment:5 in reply to: ↑ 4 Changed 2 years ago by pydanny

Replying to ssidorenko:

Oh ok, i was grepping for "djangoimport" actually. Can the description of the bug be updated ?

I lack the ability to edit the ticket now that it's been accepted. Perhaps a core developer has those rights?

comment:6 Changed 2 years ago by aaugustin

  • Description modified (diff)

comment:7 Changed 2 years ago by Aymeric Augustin <aymeric.augustin@…>

  • Resolution set to fixed
  • Status changed from new to closed

In 00ff69a827b38054afe557fc7d0a589b270ed871:

Fixed #19283 -- Fixed typo in imports in CBV docs.

comment:8 Changed 2 years ago by Aymeric Augustin <aymeric.augustin@…>

In 5e9af1600d74cbbfef5ad13fdf377dad73e0dd86:

[1.5.x] Fixed #19283 -- Fixed typo in imports in CBV docs.

Backport of 00ff69a from master.

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