This week we’ve gotten a request from translate.moblin.org for being able to login using unicode chars. They use a custom backend for authentication that allows, for example, Chinese chars in the username. Django seems to handle it pretty well, although the Django Admin Panel complains about it. As a solution, we’ve implemented a way to override the Django admin forms for creating and editing users, using a UnicodeRegexField.
That was a cool stuff. Here is a code example of an admin.py
0sem comentários ainda