django - Djagno Grappelli - Autocomplete and french accents -


i have problem django grappelli autocomplete.

it works fine reason, if name has french accents (é,è,etc) field shows '?'.

here screenshot:

http://gyazo.com/64dfb579ccf9e11c0f0d9ee8337edec4

here related label:

    def related_label(self):     return str(self.getfullname)+" - "+ str(self.city) 

thanks, ara

return unicode object instead of str.

def related_label(self):     return u'{0.getfullname} - {0.city}'.format(self) 

Comments

Popular posts from this blog

php - regexp cyrillic filename not matches -

c# - OpenXML hanging while writing elements -

sql - Select Query has unexpected multiple records (MS Access) -