Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add support for Django 5.1 by removing deprecated features #534

Open
wants to merge 2 commits into
base: master
Choose a base branch
from

Conversation

jamesgilmorelyst
Copy link

@jamesgilmorelyst jamesgilmorelyst commented Feb 28, 2024

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 🙂

pyproject.toml Outdated Show resolved Hide resolved
@farridav farridav added the Awaiting changes Needs changes from the author label Mar 23, 2024
@jamesgilmorelyst jamesgilmorelyst force-pushed the fix-django-RemovedInDjango51Warning branch from 1976c27 to bb214e9 Compare March 23, 2024 14:53
@jamesgilmorelyst jamesgilmorelyst changed the title Add support for Django 5.0 by removing deprecated features Add support for Django 5.1 by removing deprecated features Mar 23, 2024
@jamesgilmorelyst jamesgilmorelyst removed the Awaiting changes Needs changes from the author label Mar 23, 2024
@PacificGilly
Copy link
Collaborator

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
Copy link
Owner

Sure, makes sense

@afiestas
Copy link

afiestas commented Aug 8, 2024

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 😊

@PacificGilly PacificGilly force-pushed the fix-django-RemovedInDjango51Warning branch from 24462df to 80dccb1 Compare August 8, 2024 15:23
@collinsinclair
Copy link

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

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 favor of the length template filter and the == operator within an {% if %} tag.
```

A trivial change to make and the `length` feature if backwards compatile to the earliest support version this repo supports of 2.2.
The documentation was really easy to follow, but noticed that these comamnds for setting up the test app was already defined in the Makefile, so just repointed the development documentation to use the Make command instead.
@PacificGilly PacificGilly force-pushed the fix-django-RemovedInDjango51Warning branch from 80dccb1 to 913e795 Compare August 28, 2024 08:38
@FabianClemenz
Copy link

already resolved in v.3.0.1

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

The length_is template filter will be removed in 5.1 of Django.
6 participants