Re: Possible bug in interaction between 'block' and 'include' in Django Templates

2015-09-10 Thread Suriya Subramanian
I got the answer on IRC that this is not a bug as explained in the documentation for include https://docs.djangoproject.com/en/1.8/ref/templates/builtins/#include Suriya On Thursday, September 10, 2015 at 2:55:42 PM UTC+5:30, Suriya Subramanian wrote: > > Hi, > > I think there is

Possible bug in interaction between 'block' and 'include' in Django Templates

2015-09-10 Thread Suriya Subramanian
Hi, I think there is a bug in how 'block' and 'include' template tags interact in the Django Template Language. I have created a Gist showing this issue: https://gist.github.com/anonymous/2627bb35955db77dbfaa The order of the files in the Gist can be a bit confusing. I will explain what I am

Re: Django ORM Interaction between order_by(), distinct(), and filter()

2015-06-01 Thread Suriya Subramanian
I found a way to express the second query in the ORM. Person.objects.filter(sex='F', pk__in=tallest_people) Thanks, Suriya On Monday, June 1, 2015 at 12:13:49 PM UTC+5:30, Suriya Subramanian wrote: > > I have a question about how order_by(), distinct(), and filter() interact. > This

Django ORM Interaction between order_by(), distinct(), and filter()

2015-06-01 Thread Suriya Subramanian
I have a question about how order_by(), distinct(), and filter() interact. This question is applicable only to the PostgreSQL backend since the Queryset is constructed by passing filed arguments to distinct(). https://docs.djangoproject.com/en/1.8/ref/models/querysets/#distinct In the other

Re: Leveraging the ORM for very complex queries

2015-05-17 Thread Suriya Subramanian
ile you update the hack for the new > version of Django or (better) rewrite it to use supported APIs. > > Regards, > Michael Manfre > > On Monday, May 4, 2015 at 7:17:49 AM UTC-4, Suriya Subramanian wrote: >> >> Hi Russ, >> >> Thank you for your ans

Re: Leveraging the ORM for very complex queries

2015-05-04 Thread Suriya Subramanian
ere a way to programmatically construct the complex >> queries. I see that I can get the generated SQL and parameters by invoking >> SQLCompiler.as_sql(). Can I invoke as_sql() on the individual query sets >> and then construct the complex query? What are some gotchas that I nee

Leveraging the ORM for very complex queries

2015-05-02 Thread Suriya Subramanian
the complex query? What are some gotchas that I need to watch out for? Thanks, Suriya Subramanian -- You received this message because you are subscribed to the Google Groups "Django users" group. To unsubscribe from this group and stop receiving emails from it, send an email to dj