Use in the first line
#- coding: utf-8
from __future__ import unicode_literals
And put in models
from django.utils.encoding import python_2_unicode_compatible
@python_2_unicode_compatible
class MyClass(object):
def __str__(self):
return "Instance of my class"
See more in
Python 3 have a better support of international alphabet.
2016-06-20 23:44 GMT+02:00 Xristos Xristoou :
> hello i want to use choices in my field but not work if i write in my
> language(greek) only work in the england language.
> if i writing choices in my language show me
hello i want to use choices in my field but not work if i write in my
language(greek) only work in the england language.
if i writing choices in my language show me error message in the admin mode
(this choose is not valid),any idea how to fix that ?i have python 2.7
--
You received this
3 matches
Mail list logo