farridav / django-jazzmin

Jazzy theme for Django
https://django-jazzmin.readthedocs.io
MIT License
1.6k stars 282 forks source link

Add support for Django 5.1 by removing deprecated features #534

Open jamesgilmorelyst opened 7 months ago

jamesgilmorelyst commented 7 months ago

There is only one Django feature used here that is removed in >=5.0, which is the length_is filter query:

RemovedInDjango51Warning: The length_is template filter is deprecated in favour of the length template filter and the == operator within an {% if %} tag.

It is a trivial change to make, and the length feature if backwards compatible to the earliest support version this repo supports of 2.2.

Preview of fieldsets, which has been modified in this PR:

Screenshot 2024-02-28 at 18 22 25

As this is my first PR, I've also added in some QoL changes for new devs working in this repo. Hopefully that's okay 🙂

PacificGilly commented 6 months ago

Hi @farridav, sorry to be a pain, but I've migrated my GH account from my work to personal account so I can continue to make contributions for as long as possible. Would it be okay to help contribute/maintain from my current account instead, please?

farridav commented 6 months ago

Sure, makes sense

afiestas commented 1 month ago

Hey, just a headsup django just release the stable 5.1 so would be lovely if tihs PR could be merged soonish and a new version release.

Thanks for all the awesome work, much much appreciated 😊

collinsinclair commented 1 month ago

would love to see this merged in - this is now a blocking issue on a fresh Django project