Opened 2 years ago

Last modified 2 years ago

#33958 closed Cleanup/optimization

Missing import in "Expressions can reference transforms" section — at Initial Version

Reported by: Eido Askayo Owned by: nobody
Component: Documentation Version: 4.0
Severity: Normal Keywords:
Cc: Triage Stage: Ready for checkin
Has patch: yes Needs documentation: no
Needs tests: no Patch needs improvement: no
Easy pickings: no UI/UX: no

Description

In section Expressions can reference transforms, the following code is shown:

>>> Entry.objects.aggregate(first_published_year=Min('pub_date__year'))

There is a missing import for Min function:

>>> from django.db.models import Min

Change History (0)

Note: See TracTickets for help on using tickets.
Back to Top