melinath / django-daguerre

On-the-fly image manipulation for Django.
http://django-daguerre.readthedocs.org/
BSD 3-Clause "New" or "Revised" License
85 stars 15 forks source link

adjust tag outputs nothing on first load with django-el-pagination and specified page #107

Closed int-ua closed 7 years ago

int-ua commented 7 years ago

django-daguerre==2.2.3 Django==1.8.18 django-el-pagination==3.1.0

On a paginated view with AJAX active everything works fine until I provide page number on page load instead of loading that page dynamically ( domain.test/view/37/ vs domain.test/view/37/?page=2 ). It's just src="" where adjust is in template. Currently I have no idea why this might happen. Any hints? Did I miss something? I'll try to investigate it further tomorrow.

int-ua commented 7 years ago

Cannot reproduce it on a clean test project.

int-ua commented 7 years ago

Ok, so adjust tag outputs nothing in case file doesn't exist and I had just a handful of files copied to test while almost all of them didn't exist. Somehow without .distinct() on the queryset ordering between loading page by AJAX and GET-request on whole page differed.