You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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.
The text was updated successfully, but these errors were encountered:
browniebroke
changed the title
Update usage of QuerySet.earliest() and QuerySet.latest()
Codemodder: QuerySet.earliest() and QuerySet.latest()Sep 20, 2020
Description
From Django 2.0 release notes:
This is removed in Django 3.0:
The text was updated successfully, but these errors were encountered: