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

html - Sizing a high-res image (~8MB) to display entirely in a small div (circular, diameter 100px) -

java - IntelliJ - No such instance method -

identifier - Is it possible for an html5 document to have two ids? -