Opened 7 years ago

Closed 7 years ago

Last modified 7 years ago

#12120 closed (invalid)

documentation: get() does not work with values()

Reported by: adrian_nye Owned by: nobody
Component: Documentation Version: 1.1
Severity: Keywords:
Cc: Triage Stage: Unreviewed
Has patch: no Needs documentation: no
Needs tests: no Patch needs improvement: no
Easy pickings: UI/UX:


Under get() and values() in the queryset documentation, it does not mention that these two do not work together. It would be good to mention
this under values() along with the workaround using filter() instead of get().

Change History (2)

comment:1 Changed 7 years ago by Alex

  • Needs documentation unset
  • Needs tests unset
  • Patch needs improvement unset
  • Resolution set to invalid
  • Status changed from new to closed

The docs state quite clearly that get() doesn't return a QuerySet, since values() is a method on queryset it's self-evident that get().values() wouldn't work.

comment:2 Changed 7 years ago by apollo13

And about your workaround, you wouldn't use filter but this:

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