Re: where is the error in pagination?

2019-09-25 Thread leb dev
> > >> >> >> >> {% if object_list.has_previous %} >> >> first >> >> previous >> >> {% endif %} >> >> >>> >> >> Page {{ object_list.number }} of {{ >>> object_list.paginator.num_pages }}. >> >> >> >> >>> {% if

Re: where is the error in pagination?

2019-09-25 Thread laya Mahmoudi
Would you send your html codes relating to pagination در تاریخ چهارشنبه ۲۵ سپتامبر ۲۰۱۹،‏ ۱۵:۰۳ leb dev نوشت: > i tried your answer and display an error : > > That page number is not an integer > > -- > You received this message because you are subscribed to the Google Groups > "Django users"

Re: where is the error in pagination?

2019-09-25 Thread leb dev
i tried your answer and display an error : That page number is not an integer -- You received this message because you are subscribed to the Google Groups "Django users" group. To unsubscribe from this group and stop receiving emails from it, send an email to

RE: where is the error in pagination?

2019-09-25 Thread laya
nator.page(1) except EmptyPage: # If page is out of range (e.g. ), deliver last page of results. queryset = paginator.page(paginator.num_pages) Sent from Mail for Windows 10 From: leb dev Sent: Wednesday, September 25, 2019 2:32 PM To: Django users Subject: where is the error in pagi

Re: where is the error in pagination?

2019-09-25 Thread leb dev
no i am using function based views -- You received this message because you are subscribed to the Google Groups "Django users" group. To unsubscribe from this group and stop receiving emails from it, send an email to django-users+unsubscr...@googlegroups.com. To view this discussion on the web

RE: where is the error in pagination?

2019-09-25 Thread laya
Hi, Do you use Class Based View ? Sent from Mail for Windows 10 From: leb dev Sent: Wednesday, September 25, 2019 2:32 PM To: Django users Subject: where is the error in pagination? i have a django project  and it includes pagination i do not know where is the error in my code but once i

where is the error in pagination?

2019-09-25 Thread leb dev
i have a django project and it includes pagination i do not know where is the error in my code but once i tired to go to the next or previous page it crash and display the below error : > can only concatenate str(not ""NoneType) to str query=request.GET.get("search")