#24656: Query Expressions page do not always show imports --------------------------------------+------------------------------------ Reporter: pydanny | Owner: niconoe Type: Cleanup/optimization | Status: assigned Component: Documentation | Version: 1.8 Severity: Normal | Resolution: Keywords: | Triage Stage: Accepted Has patch: 1 | Needs documentation: 0 Needs tests: 0 | Patch needs improvement: 0 Easy pickings: 1 | UI/UX: 0 --------------------------------------+------------------------------------
Comment (by niconoe): I just submitted a patch that: - Adds all the required imports in the different exemples (except if they are one/two liners AND they're not the first example using the said expression in the page). - Adds an explicative block at the beginning of the "Built-in Expressions", stating that those expressions can indeed be imported from django.db.models as suggested by timgraham. Hope that helps, that's almost my first contribution. -- Ticket URL: <https://code.djangoproject.com/ticket/24656#comment:9> 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 django-updates+unsubscr...@googlegroups.com. To post to this group, send email to django-updates@googlegroups.com. To view this discussion on the web visit https://groups.google.com/d/msgid/django-updates/065.d53d0ffc0c433fd29622d1822e4f2518%40djangoproject.com. For more options, visit https://groups.google.com/d/optout.