﻿id	summary	reporter	owner	description	type	status	component	version	severity	resolution	keywords	cc	stage	has_patch	needs_docs	needs_tests	needs_better_patch	easy	ui_ux
5115	ORM does not support query set subscription with long numbers	zboczuch <zboczuch@…>	Adrian Holovaty	"{{{
> from app.models import foo

> foo.objects.all()[2L]

<type 'exceptions.TypeError'> 
}}}

Longs are allowed in slices. I think the problem is in django/db/models/query.py:

{{
def __getitem__(self, k):
    ""Retrieve an item or slice from the set of results.""
    if not isinstance(k, (slice, int)):
}}

""long"" should be added to the type list above."		closed	Core (Other)	dev		fixed	orm query set slice indexing	zboczuch@…	Unreviewed	0	0	0	0	0	0
