Django template filters floatformat and intcomma: speed issues

2012-11-03 Thread Kee
Hello, I was generating a lagrge table with django and wondered why response is so slow (it has ~ 2000 x 10), so I rewrote profiled ``floatformat`` and ``intcomma`` and wrote down their implementations using builtin functions only. Take a look: https://gist.github.com/4007717 Floatformat

Re: Pretty Django model instaces updating

2012-10-09 Thread Kee
I also propose these two little helpers, one is ``refresh()`` and other is ``update()`` https://gist.github.com/3859962 ``update()`` updates instance without calling ``save()`` and calling signals and returns updated instance (sometimes you want to update instance without involving save

Re: Pretty Django model instaces updating

2012-03-01 Thread Kee
Fully agree with Anssi Kääriäinen, the best approach is ``only_fields`` for save()`` On Mar 1, 11:45 pm, Anssi Kääriäinen wrote: > On Thursday, March 1, 2012 9:29:34 PM UTC+2, Carl Meyer wrote: > > > > > > Thanks for the suggestion. I

Pretty Django model instaces updating

2012-03-01 Thread Kee
This helper could be used as an instance method in django.core.models.Model class: https://gist.github.com/1951748 -- You received this message because you are subscribed to the Google Groups "Django developers" group. To post to this group, send email to django-developers@googlegroups.com. To

Re: Python 3 and you

2011-11-11 Thread Kee
Jannis, that's great news indeed, I'll help with testing. -- You received this message because you are subscribed to the Google Groups "Django developers" group. To view this discussion on the web visit https://groups.google.com/d/msg/django-developers/-/jzva36TUYGcJ. To post to this group,