#16142: Coming admin FilterSpec implementation limits querying functionality -----------------------+------------------------------- Reporter: subsume@… | Owner: nobody Type: Bug | Status: new Milestone: | Component: contrib.admin Version: SVN | Severity: Normal Keywords: | Triage Stage: Unreviewed Has patch: 0 | Easy pickings: 0 -----------------------+------------------------------- <jezdez> subsume: please elaborate <jezdez> or point me to the section where the use case is described if this has been discussed before <subsume> jezdez here's a test case I whipped up at the time https://github.com/subsume/filter- test/commit/e7c1943c3c4570786ca102dba88d5adf4dc4e1eb * pgurumur (~pguru...@soi.silverspringnet.com) has joined #django * bradleyayers (~anonym...@88.168.70.115.static.exetel.com.au) has joined #django <jezdez> subsume: why don't you use fm.Company.objects.filter(locations__zip_code="90210", locations__open_days="WEEKEND")? * shapr has quit (Quit: hometime, work is over) <subsume> jezdez I certainly don't mind but that's not the QS that will be generated by the admin filter implementation in place <jezdez> subsume: not you lost me, what exactly do you want? <jezdez> *now <subsume> I wanted a hook to override the broken behavior so I can achieve what you typed. Right now the filters will just loop over and over tacking on a new .filter() each time * j00bar (407ddf92@fsf/emeritus/j00bar) has joined #django * Finity (6c54d5e9@gateway/web/freenode/ip.108.84.213.233) has joined #django * seanbrant has quit (Quit: seanbrant) <subsume> Because in your case it was part of the same join. In the current implementation its not. * fission6 has quit (Quit: Leaving) <jezdez> subsume: okay, I must have missed that notion from the ticket, please open a ticket and state this exact reason. and no, this shouldn't be fixed with yet another hook, but by making the default filtering more effective in the first <jezdez> place <Finity> anyone know how a FileField handle's a blank file <Finity> apparently it gets set to None, but if I change the file, it apparently doesn't abide by my upload_to rules >_> <jezdez> subsume: feel free to refer to our conversation here, so it's not lost
The problem is illustrated above and is a continuation of the discussion at #5833. -- Ticket URL: <https://code.djangoproject.com/ticket/16142> 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 post to this group, send email to django-updates@googlegroups.com. To unsubscribe from this group, send email to django-updates+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/django-updates?hl=en.