#8375: It's better to allow using tables parameter with custom alias in extra query ---------------------------------------------------+------------------------ Reporter: Wonlay | Owner: nobody Status: new | Milestone: post-1.0 Component: Database layer (models, ORM) | Version: SVN Resolution: | Keywords: query, extra, tables, custom alias Stage: Design decision needed | Has_patch: 1 Needs_docs: 1 | Needs_tests: 1 Needs_better_patch: 1 | ---------------------------------------------------+------------------------ Changes (by Phillip Temple):
* stage: Someday/Maybe => Design decision needed Comment: I think it's an excellent patch, and useful if you want to implement a tree branch totals query for django-mptt. It's backward compatible so I can't see any problem incorporating it. The only thing I could also suggest is having the syntax: {{{ table = ['newtable as newalias'] }}} This will allow additional arguments to be added, giving some future- proofing, with the added bonus you can simply cut and paste from your tried and tested SQL statement. Phillip. -- Ticket URL: <http://code.djangoproject.com/ticket/8375#comment:5> Django <http://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 post to this group, send email to django-updates@googlegroups.com To unsubscribe from this group, send email to [EMAIL PROTECTED] For more options, visit this group at http://groups.google.com/group/django-updates?hl=en -~----------~----~----~----~------~----~------~--~---