thatandromeda / shortimer

a webapp for code4lib jobs
http://jobs.code4lib.org
0 stars 0 forks source link

Unicode encoding errors? Huh? #49

Closed thatandromeda closed 9 years ago

thatandromeda commented 9 years ago

You can see this on localhost with http://127.0.0.1:8000/job/18592/edit/ .

thatandromeda commented 9 years ago

Turned out to be that Employer and Location defined __str__ but not __unicode__, and their __str__ methods did not in fact cast to ascii, so the renderer had a sad when things like "Los Álamos" were communicated to it as ascii. Now __str__ explicitly casts to ascii and __unicode__ exists.