tigeorgia / shenmartav

Website for shenmartav.ge
GNU General Public License v2.0
3 stars 9 forks source link

Unicode error when accessing representative model in django-admin in Georgian #176

Closed GeorgeLubaretsi closed 10 years ago

GeorgeLubaretsi commented 10 years ago

If you go to ka/admin/representative/representative/, You'll get

Caught UnicodeEncodeError while rendering: 'ascii' codec can't encode characters in position 5-14: ordinal not in range(128)

I digged into it and found that ApproximateDateField from django-date-extensions seems to be the issue. It gets string like 1970-01-01 and transfers it to 'January 01 1970". I think it can't handle unicode. It's used by popit in date_of_birth of Person model.

GeorgeLubaretsi commented 10 years ago

We seem to had patch for this. shenmartav/patches/django_date_extensions-field.py.diff