#33958: Missing import in "Expressions can reference transforms" section
-----------------------------------------+------------------------
Reporter: Eido Askayo | Owner: nobody
Type: Bug | Status: new
Component: Documentation | Version: 4.0
Severity: Normal | Keywords:
Triage Stage: Unreviewed | Has patch: 0
Needs documentation: 0 | Needs tests: 0
Patch needs improvement: 0 | Easy pickings: 0
UI/UX: 0 |
-----------------------------------------+------------------------
In section [https://docs.djangoproject.com/en/4.0/topics/db/queries
/#expressions-can-reference-transforms 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
}}}
--
Ticket URL: <https://code.djangoproject.com/ticket/33958>
Django <https://code.djangoproject.com/>
The Web framework for perfectionists with deadlines.
--
You received this message because you are subscribed to the Google Groups
"Django updates" group.
To unsubscribe from this group and stop receiving emails from it, send an email
to [email protected].
To view this discussion on the web visit
https://groups.google.com/d/msgid/django-updates/01070182e35ae318-b9f57d3d-c019-4eeb-b242-9f4eb3854d2b-000000%40eu-central-1.amazonses.com.