Opened 2 years ago

Closed 2 years ago

Last modified 2 years ago

#20150 closed Cleanup/optimization (fixed)

an error in model field in example on page https://docs.djangoproject.com/en/dev/topics/db/managers/

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

Description

There's a little error in class Response - wrong model name for ForeignKey field. Should be
poll = models.ForeignKey(OpinionPoll)
instead of
poll = models.ForeignKey(Poll)

Change History (7)

comment:1 Changed 2 years ago by matiasb

  • Needs documentation unset
  • Needs tests unset
  • Patch needs improvement unset
  • Triage Stage changed from Unreviewed to Accepted

comment:2 Changed 2 years ago by nims11

  • Owner changed from nobody to nims11
  • Status changed from new to assigned

comment:3 Changed 2 years ago by nims11

  • Has patch set

comment:4 Changed 2 years ago by Nimesh Ghelani <nimeshghelani@…>

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

In 485c024567c83160b66a62d1bd3f152070808281:

Fixed #20150 -- Fixed an error in manager doc example

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

In ce11dde7c028131fe42bdb87fac1b5dca2d0a2f3:

Merge pull request #977 from nims11/ticket_20150

Fixed #20150 -- Fixed an error in manager doc example

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

In 1d620fb957ea557aa6e4420b037a5262b4edcb67:

[1.5.x] Fixed #20150 -- Fixed an error in manager doc example

Backport of 485c024567 from master

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

In d2b883483974c3a45d2f74d40df164b1ae9e00e3:

[1.4.x] Fixed #20150 -- Fixed an error in manager doc example

Backport of 485c024567 from master

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