-
Notifications
You must be signed in to change notification settings - Fork 14
Upgrade to Django 4 #31
Comments
Hello, Yes we are happy to accept a PR to improve compatibility, thank you for the initiative :-) I've very quickly setup a basic django project and it seems the main problem is that Django 4.0 removed Did you encounter a different issue? I also can't install the package on python 3.12, but that's a different issue. Python 3.11 works fine. We'd welcome if you want to test it a bit more and send a PR to fix the issue(s), I'm happy to help with any issues that come up. Thanks |
Hi there, Yes I've already swtiched from I believe there might be some problems with other third party libraries I'm using in this project. I am guessing some things could clash with |
I see, when I tested the full functionality, I encountered the problem as well. It's because the package uses Django 4 also removed I've fixed these 2 issues and the One more thing, the README doesn't say it, but you also need to add this to your urls so that the JS functionality can call the endpoints. That definitely needs to be added to the README. Let me know if this solves your issue and if you find anything else that needs improving. For the record, I tested it with this ModelAdmin
and this template
|
Hello, I was on the same track (moved from I still have one problem with the
and If I let that If, on the other hand, I force-override
that solves the problem and the lock-page feature works as intended. I don't quite understand why |
Wait, I just realised I believe it would make sense to have I was also able to make it work from your branch
Another improvement I see would be to embed all the package settings variables into a dictionary (something like Do you want me to fork your |
Glad to see you got it working :) And yeah, I definitely agree with your points. Regarding the PR, these changes also mean that we no longer support python 2.7 and only support Django 2.0+, so we have to increase the major version as this is a breaking change. Also in Django 3.2 there's the So there need to be few more changes, then we can release a new version of the package properly. Regarding the missing documentation, I'll edit the README and merge it. In any case, thanks for reviving this package 👍 It's always great to see people who are interested in improving the package :) |
Hi there,
It seems this app is not compatible with Django 4+ and I will need to implement the same feature in a Django 4 project anyway. So instead of doing the job twice, I thought I might work on making this package compatible with Django 4 directly.
I am happy to provide a PR with all the required modifications, but is this repo still alive and will my work be merged eventually?
Also a bit of guidance beforehand would be great, if possible ;-)
Waiting for your confirmation that the repo is still being maintained and welcoming PRs, as well as some guidance on how to proceed with the migration to Django 4+.
Cheers.
The text was updated successfully, but these errors were encountered: