#24946: Implement register_lookups ----------------------------------------------+-------------------- Reporter: coldmind | Owner: nobody Type: New feature | Status: new Component: Database layer (models, ORM) | Version: master Severity: Normal | Keywords: Triage Stage: Unreviewed | Has patch: 0 Easy pickings: 0 | UI/UX: 0 ----------------------------------------------+-------------------- I think it will be good to implement `register_lookups` method to more DRY and prevent something like {{{ SomeModel.register_lookup(L1) SomeModel.register_lookup(L2) SomeModel.register_lookup(L2) }}}
So we will have {{{ SomeModel.register_lookups([L1, L2, L3]) }}} I think django code will become somewhat clearer. -- Ticket URL: <https://code.djangoproject.com/ticket/24946> 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/051.cce18ce3f9c2a1dd477674ab31402376%40djangoproject.com. For more options, visit https://groups.google.com/d/optout.