On Thursday, September 15, 2016 at 10:38:09 AM UTC+2, Michal Petrucha wrote: > > > As cool as this idea sounds, I really don't think the URL dispatcher > is a correct component to make database queries. FWIW, I've seen > similar magic implemented in view decorators, and the thing I remember > the most from this experience was that it made it a lot harder to > follow what was happening where. > > Moreover, I can imagine this turning into a complicated mess of a > syntax to allow query customizations using a weird DSL really quickly. > After all, if we allow PK lookups, it's not that unreasonable to also > want to be able to lookup by other keys, and it all goes downhill from > here. > > Cheers, > > Michal >
Agreed. It all goes downhill from there, so let's at least not do database queries. To me, that settles it: no typecasting. -- You received this message because you are subscribed to the Google Groups "Django developers (Contributions to Django itself)" group. To unsubscribe from this group and stop receiving emails from it, send an email to django-developers+unsubscr...@googlegroups.com. To post to this group, send email to django-developers@googlegroups.com. Visit this group at https://groups.google.com/group/django-developers. To view this discussion on the web visit https://groups.google.com/d/msgid/django-developers/d9db908b-d22b-428f-908a-ecdc34b8fbfb%40googlegroups.com. For more options, visit https://groups.google.com/d/optout.