django - Localization Select() in ModelForm and Custom RadioSelect() Label -


i'm searching way have localized version of select() deciaml values. in germany have , our separator django uses .

everything i18n activated still won't localized version.


next question how have radioselect() widget custom label? label text should come model, select gets input. customer.name, customer.title possible?

edit fill select() with:

    class article(models.model):         cu_inside = models.foreignkey(cuinside, default='')         class meta:            app_label = 'tasks' 

and foreignkey-model:

class cuinside(models.model):     value = models.decimalfield(max_digits=10, decimal_places=2)      class meta:         app_label = 'tasks'         ordering = ['pk']      def __unicode__(self):         return u'%s' % self.value 

now have modelform:

class articleform(modelform):     class meta:         app_label = 'tasks'         model = article         fields = ('cu_inside')         widgets = {'cu_inside': select() } 

so have nothing special.

the editing / inline of code annoying or new me in stackoverflow..


Comments

Popular posts from this blog

blackberry 10 - how to add multiple markers on the google map just by url? -

php - guestbook returning database data to flash -

delphi - Dynamic file type icon -