#20625: Custom Chainable QuerySets -------------------------------------+------------------------------------- Reporter: danols | Owner: danols Type: New feature | Status: assigned Component: Database layer | Version: master (models, ORM) | Resolution: Severity: Normal | Triage Stage: Accepted Keywords: QuerySet, | Needs documentation: 0 models.Manager, chainable | Patch needs improvement: 0 Has patch: 1 | UI/UX: 0 Needs tests: 0 | Easy pickings: 0 | -------------------------------------+-------------------------------------
Comment (by loic84): Proof of concept: https://github.com/loic/django/compare/ticket20625 I wanted to leverage the Django test suite, so I tested my concept on the actual `Manager` class, the complete suite is passing. We might not be able to do such refactor in the wild (removing all the proxy methods) since calls to `super` wouldn't work anymore, but the idea is there. -- Ticket URL: <https://code.djangoproject.com/ticket/20625#comment:8> 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/064.3318289c10f8a25873b306c4c041582b%40djangoproject.com. For more options, visit https://groups.google.com/groups/opt_out.