oscarmlage / django-cruds-adminlte

django-cruds is simple drop-in django app that creates CRUD for faster prototyping
BSD 3-Clause "New" or "Revised" License
424 stars 81 forks source link

django-image-cropping not working in Django 2.x #117

Open Seykotron opened 4 years ago

Seykotron commented 4 years ago

Hi,

I'm getting crazy with this, using the same code as the Demo, and the frontend part of cropping not working.

There is no error in Inspect Elements, the jQuery is loading fine etc, I dont know what it can be, any guesses?

Thank you!!! Captura de pantalla 2019-08-18 a las 15 25 47

oscarmlage commented 4 years ago

Yeah @Seykotron you're right. Right now the django-image-cropping package is not working 😢.

We need to work in the last version integration. Had it tested and running with Django 1.x but it crashed with 2.x. I saw django-image-cropping has now support for Django 2.1 so the code needs to be updated (probably in the next release). Thanks for noticing.

Seykotron commented 4 years ago

Let me know if I can give you a hand to fix it, I need this feature hehehe

I also have some modifications in the code for example let __icontains in filter_list, I think it can be very usefull :)

oscarmlage commented 4 years ago

Hey @Seykotron, cropping is working here in Demo project with Django==2.2.3 + django-image-cropping==1.2.0

image

Please give a look to your environment versions and let me know if it works there. Also if it doesn't please try to prepare something like a demo-project or some bundle that I could download and run here in my environments.

oscarmlage commented 4 years ago

I was fifty-fifty wrong in last comment. It is working if you edit/update a record that already has the image, but it is not working if you're adding a new record.