django-codemod icon indicating copy to clipboard operation
django-codemod copied to clipboard

Codemodder: `QuerySet.earliest()` and `QuerySet.latest()`

Open browniebroke opened this issue 5 years ago • 0 comments
trafficstars

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 avatar Jun 19 '20 17:06 browniebroke