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

Codemodder: QuerySet.earliest() and QuerySet.latest() #115

Open
browniebroke opened this issue Jun 19, 2020 · 0 comments
Open

Codemodder: QuerySet.earliest() and QuerySet.latest() #115

browniebroke opened this issue Jun 19, 2020 · 0 comments
Labels
enhancement New feature or request
Milestone

Comments

@browniebroke
Copy link
Owner

browniebroke commented Jun 19, 2020

Description

From Django 2.0 release notes:

The field_name keyword argument to QuerySet.earliest() and QuerySet.latest() is deprecated in favor of passing the field names as arguments. Write .earliest('pub_date') instead of .earliest(field_name='pub_date').

This is removed in Django 3.0:

The field_name keyword argument of QuerySet.earliest() and latest() will be removed.

@browniebroke browniebroke added the enhancement New feature or request label Jun 19, 2020
@browniebroke browniebroke added this to the Django 3.0 milestone Sep 20, 2020
@browniebroke browniebroke changed the title Update usage of QuerySet.earliest() and QuerySet.latest() Codemodder: QuerySet.earliest() and QuerySet.latest() Sep 20, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

1 participant