Opened 10 years ago

Closed 10 years ago

Last modified 10 years ago

#1733 closed defect (fixed)

Documentation for slicing QuerySets is misleading

Reported by: lukeplant Owned by: jacob
Component: Documentation Version: magic-removal
Severity: normal Keywords:
Cc: Triage Stage: Unreviewed
Has patch: no Needs documentation: no
Needs tests: no Patch needs improvement: no
Easy pickings: UI/UX:


The documentation on When QuerySets are evaluated is misleading in the 'slicing' section. The implementation of slicing changed in order to support everything that could be done with the old generic views, and now, slicing always creates a new QuerySet (i.e. doesn't affect the existing one at all). It will return a list of objects if the slice can't be done in SQL (such as if the 'step' parameter is used), or if a single object is requested -- otherwise it will return a new QuerySet.

Change History (2)

comment:1 Changed 10 years ago by lukeplant

  • Component changed from Admin interface to Documentation
  • Owner changed from adrian to jacob
  • Version set to magic-removal

comment:2 Changed 10 years ago by adrian

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

(In [2837]) Fixed #1733 -- Clarified docs/db-api.txt section on slicing QuerySets. Thanks, Luke Plant

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