Django ORM query syntax enhancement

2015-08-16 Thread Alexey Zankevich
Hi all, This topic is related to the current ORM query syntax with underscores. There are lots of arguing related to it, anyway it has pros and cons. Let's take a concrete example of querying a model: >>> GameSession.objects.filter(user__profile__last_login_date__gte=yesterday) Pros: 1. The

Enhancement to the call_command function to allow the use of modules as arguments

2015-08-16 Thread Mike Lissner
I recently filed a bug about this and was redirected here for discussion. While using call_command (which simplifies calling management commands), it occurred to me that the API is a little strange. It currently is designed to work like this: c

Re: Enhancement to the call_command function to allow the use of modules as arguments

2015-08-16 Thread Aymeric Augustin
Hello Mike, I saw your ticket a few days ago, thanks for bringing it up here. > While using call_command (which simplifies calling management commands), it > occurred to me that the API is a little strange. It currently is designed to > work like this: > > call_command('my_command', *args,

Re: Django Admin New Look

2015-08-16 Thread elky
Hi guys, I made double work for vector icons - now we have Font and SVG icons. Let's choose what to use. *Quoting my comment from SVG discussion here:* Well, only week ago I was 100% happy with font icons. But after Collin's commen

Re: Django ORM query syntax enhancement

2015-08-16 Thread Josh Smeaton
Hi Alexey, I find this approach really interesting, and I don't mind the API you've created at all. Even if this doesn't make it into Django, I think there's enough utility in your library that other people would want to use it. I'm not going to comment on specifics just yet like method names,