#23855: Different usage is different code snippets
--------------------------------------+--------------------
Reporter: willstott101 | Owner: nobody
Type: Cleanup/optimization | Status: new
Component: Documentation | Version: 1.7
Severity: Normal | Keywords:
Triage Stage: Unreviewed | Has patch: 0
Easy pickings: 1 | UI/UX: 0
--------------------------------------+--------------------
https://docs.djangoproject.com/en/1.7/intro/tutorial03/#a-shortcut-render
This snippet uses:
{{{
latest_question_list = Question.objects.all().order_by('-pub_date')[:5]
}}}
Whereas the previous used:
{{{
latest_question_list = Question.objects.order_by('-pub_date')[:5]
}}}
There is no explanation.
--
Ticket URL: <https://code.djangoproject.com/ticket/23855>
Django <https://code.djangoproject.com/>
The Web framework for perfectionists with deadlines.
--
You received this message because you are subscribed to the Google Groups
"Django updates" group.
To unsubscribe from this group and stop receiving emails from it, send an email
to [email protected].
To post to this group, send email to [email protected].
To view this discussion on the web visit
https://groups.google.com/d/msgid/django-updates/055.192a1368421094031ac2ef5609dd2c3f%40djangoproject.com.
For more options, visit https://groups.google.com/d/optout.