Hi,

I tried to implement a localized "DecimalField" but it doesn't seem to
work. When entering a decimal number with a German decimal seperator
( , ) the admin interface tells me to "Enter a number". Is there some
setting/middleware/etc. I overlooked?

My "settings.py" and test model look something like this:

### settings.py ###
[...]
LANGUAGE_CODE = 'de'
USE_I18N = True
USE_L10N = True
[...]
###

### models.py ###
from django.contrib import admin
from django.db import models

class DecTest(models.Model):
    dec = models.DecimalField(max_digits=8, decimal_places=2)

admin.site.register(DecTest)
###

Thanks in advance!

Regards
Simon

-- 
You received this message because you are subscribed to the Google Groups 
"Django users" group.
To post to this group, send email to django-us...@googlegroups.com.
To unsubscribe from this group, send email to 
django-users+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/django-users?hl=en.

Reply via email to