#4293: The bug occur in a slice filter. |slice:"1::2" if query set is empty
-------------------------------------+--------------------------------------
Reporter: [EMAIL PROTECTED] | Owner: adrian
Status: new | Component: Template system
Version: 0.96 | Keywords: loop state
Stage: Unreviewed | Has_patch: 0
-------------------------------------+--------------------------------------
{% for film in films|slice:"1::2" %}
The films is an empty query set.
Exception Type: ProgrammingError
Exception Value: (1064, "You have an error in your SQL syntax;
check the manual that corresponds to your MySQL server version for the
right syntax to use near '-1' at line 1")
--
Ticket URL: <http://code.djangoproject.com/ticket/4293>
Django Code <http://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 post to this group, send email to [email protected]
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at
http://groups.google.com/group/django-updates?hl=en
-~----------~----~----~----~------~----~------~--~---