#25687: Document how backends should monkey patch expressions
-----------------------------------------+------------------------
Reporter: jarshwah | Owner: nobody
Type: Uncategorized | Status: new
Component: Documentation | Version: master
Severity: Normal | Keywords:
Triage Stage: Accepted | Has patch: 0
Needs documentation: 0 | Needs tests: 0
Patch needs improvement: 0 | Easy pickings: 0
UI/UX: 0 |
-----------------------------------------+------------------------
@dedsm at djangounderthehood brought up that the docs do not currently
contain information for how 3rd party backends should be supporting
expressions by monkey patching. Let's fix that.
Firebird backend (with connection.vendor == 'firebird') would change Sum
like this:
{{{
from django.db.models import Sum
def backend_sum(self, compiler, connection)
# do stuff
Sum.as_firebird = backend_sum
}}}
--
Ticket URL: <https://code.djangoproject.com/ticket/25687>
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 post to this group, send email to [email protected].
To view this discussion on the web visit
https://groups.google.com/d/msgid/django-updates/051.306fcbffaff45c5507fd48e8dab07714%40djangoproject.com.
For more options, visit https://groups.google.com/d/optout.