Chinese humanize number conversion

2016-05-02 Thread Malte
Hi, The Chinese humanization of numbers is not correct for large and very large numbers. 1.400.000 converts into 1.4 百万 but should be 140万 166,200,000,000 converts into 166.2十亿 but should be 1662亿 I just looked through the Django core code but couldn't find where that conversion takes place. Wh

Migrations bork: relation "django_site" does not exist

2016-03-09 Thread Malte
rate or makemigrations command I run, it all results in the "relation "django_site" does not exist" error. So I came across this, where the last comms dates back less than 2 weeks with Simon Charette taking it to the irc channel. https://code.djangoproject.com/ticket/24524

Re: Can anyone give me a suggestion or a recommendation as to how I can access the current user's username in the models.py?

2014-12-12 Thread malte . dik
data flow? Sincerely, Malte -- 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 django-users+unsubscr...@googlegroups.com. To post to this group, send e

Smart locale fallback

2014-10-29 Thread Malte Beckmann
ut I doubt I am the first person to think this should happen this way. Has anyone tried this before? Cheers/malte -- 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

What is this "l" folder when running makemessages/compilemessages?

2014-09-11 Thread Malte Beckmann
When running those commands: $ django-admin.py makemessages --all $ django-admin.py compilemessages A "l" folder is generated (/var/django/jnj/jnj/locale/l/LC_MESSAGES) - what does that l folder contain? The base locale from which everything is translated? -- You received this message because

Re: Queryset cloning is very expensive

2011-03-22 Thread Malte Engelhardt
Sorry for the late response. Maybe it's sufficient to override the QuerySet clone method to just return self, not really clone it. 2011/2/14 myx > Thank you for the reply. But I meant a slightly different case: > > Item.objects.filter(...).order_by(...).values_list('id', flat=True)[: > 10] > >

Re: Problem with template syntax.

2011-03-22 Thread Malte Swart
> {% endfor %} > {% else %} > List is empty. > {% endif% } you have mixed the blank and % try: {% endif %} > {% endblock %} #On this > line is the error > > {% block foote

Extracting days,months,years from datefield.

2010-12-31 Thread Malte Beckmann
I got a models.DateField and would like to extract months and years from that field so I can do calculations like a 'day in month' in a 'for month in months' loop in a 'for year in years' loop. How can I extract that info from a datefield? I have tried to read code written by others but their solut

@property: 'Property' is not defined / what am I missing?

2010-12-27 Thread Malte Beckmann
Hi all! Noob issue: Trying to get the @property decorator to work. Django complains "NameError: name 'Property' is not defined". What is it that I am failing to import and or define? And should I have found out about it? Thankful for pointers! /aub -- You received this message because you are s