[EMAIL PROTECTED] wrote:
> Specifically:
> 
> unsupported operand type(s) for -: 'str' an

Oh... I've forgot to cast a string to an int :-). The line:

     int(request.GET.get('page', '1'))

In fact you should also check for errors here because user can submit 
something with "page=blah" and it won't be converted to an integer 
obviously. I assign 1 to a page in this case.

--~--~---------~--~----~------------~-------~--~----~
 You received this message because you are subscribed to the Google Groups 
"Django users" group.
To post to this group, send email to django-users@googlegroups.com
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/django-users?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to