Opened 12 years ago
Closed 12 years ago
#18900 closed Uncategorized (invalid)
Paginator not working correctly
Reported by: | Owned by: | nobody | |
---|---|---|---|
Component: | Core (Other) | Version: | 1.4 |
Severity: | Normal | Keywords: | |
Cc: | jason@… | Triage Stage: | Unreviewed |
Has patch: | no | Needs documentation: | no |
Needs tests: | no | Patch needs improvement: | no |
Easy pickings: | no | UI/UX: | no |
Description
I have a haystack searchqueryset (a list) and whenever i try to create a paginator out of it, the last element becomes None. Here is the example:
sqs
[<SearchResult: tutoring.tutor (pk=u'2')>, <SearchResult: tutoring.tutor (pk=u'1')>]
sqs.count() is 2
results.object_list # pagination results on same sqs list
[<SearchResult: tutoring.tutor (pk=u'2')>, None]
Here is the link to the stackoverflow question:
http://stackoverflow.com/questions/12253403/haystack-sqs-not-working-properly-with-django-pagination
Reporter found solution to his problem. Was not Django: "It turns out there was a problem in my search_indexes file, so i assume this as resolved"