execution time of qualified view name vs alias in reverse and url tag

2010-08-26 Thread kbs
After accumulating a large number of apps over the years in a single web project, I would say that the time it takes to reverse urls has become quite significant, especially if we have multiple links on screen using the reverse function. Would there be a noticeable difference if we go back to

Re: count and group by aggregation

2009-03-06 Thread kbs
thanks that worked --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "Django users" group. To post to this group, send email to django-users@googlegroups.com To unsubscribe from this group, send email to

Re: count and group by aggregation

2009-03-06 Thread kbs
returned an empty dict --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "Django users" group. To post to this group, send email to django-users@googlegroups.com To unsubscribe from this group, send email to

count and group by aggregation

2009-03-06 Thread kbs
Hello, I got a model with a type field class R(mode): type = CharField(max_length=100) Here is what im trying to do using sql notation: SELECT typ,count(*) FROM R GROUP BY type The following R.objects.aggregate(Count('type')) returns the same result as SELECT count(*) R is it

Re: aggregation filter?

2008-10-24 Thread kbs
I can confirm it worked. Thanks guys! --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "Django users" group. To post to this group, send email to django-users@googlegroups.com To unsubscribe from this group, send

aggregation filter?

2008-10-24 Thread kbs
Hello all, is it possible to filter based on an aggregate value? like count using django orm? for example: class Group(model): name = CharField() class Member(model): name = charfield() group = ForeignKey(Group) How can I filter the groups that have 10+ members using the django

Re: Generic ManyToMany - any code?

2008-05-25 Thread kbs
://www.djangoproject.com/documentation/model-api/#model-inheritance I am not sure how much control you have over it in current admin, but maybe newform admin branch would give you the needed control? I am sure soeone can elaborate - kbs On May 25, 7:01 am, Itai Tavor <[EMAIL PROTECTED]> wrote: > Thanks