﻿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
16085	pagination documentary code raises error	kaup.steffen@…	nobody	"about this doc page [[BR]]
[http://docs.djangoproject.com/en/dev/topics/pagination/?from=olddocs#using-paginator-in-a-view]
{{{
from django.core.paginator import Paginator, EmptyPage, PageNotAnInteger

def listing(request):
    contact_list = Contacts.objects.all()
    paginator = Paginator(contact_list, 25) # Show 25 contacts per page

    page = request.GET.get('page')
}}}
[[BR]]
the last line raises error: int() argument must be a string or a number, not 'NoneType'
[[BR]]
{{{
page = request.GET.get('page',1)
}}}
fixed this in my case"	Uncategorized	closed	Documentation	1.3	Normal	invalid			Unreviewed	0	0	0	0	0	0
