Unicode name of field in form

2009-12-23 Thread Andrij Skalyuk
I am trying to create field in form with name "Ø" (special danish characters). My code is something like this: field = forms.CharField() form.fields[smart_unicode("Ø")] = field After that i got exception in django during validation: File "\django\forms\forms.py", line 233, in full_clean if h

Re: Unicode name of field in form

2009-12-23 Thread Andrij Skalyuk
Thanks for reply. But what should i do with names of fields ? Replace unicode characters with some English ? I really want to keep unicode characters for names of fields, because it is easy to manage without any replacement. On Dec 23, 5:51 pm, Bill Freeman wrote: > I think that you need to pass

Re: Unicode name of field in form

2009-12-24 Thread Andrij Skalyuk
Thanks for reply. I see, that in this case, i will use replacement system of Unicode characters to ASCII. On Dec 23, 6:09 pm, Bill Freeman wrote: > I haven't done any python programing with variable, function, class, > and attribute names -- You received this message because you are subscribed