>>> from django.contrib.auth.models import User
>>> a=User.objects.get(id=1)
>>> a.username
'admin'
>>> a.email
u'admin@localhost'
I know you should only use letters and a few more characters in
usernames, but that seems to be verified in the forms only. I look at
the User model and username, email first and last names
are all CharFields, yet username displays this peculiar behaviour. Any
reason for this?
I'm using:
mysqld Ver 5.1.41
Django (1, 3, 1, 'final', 0)
MySQLdb (1,2,3,'final',0)
In my.conf used in the connection I have
[client]
default-character-set = utf8
and the tables were created with utf8_general_ci
Thanks in advance,
Nuno
--
You received this message because you are subscribed to the Google Groups "Django users" group.
To post to this group, send email to django...@googlegroups.com.
To unsubscribe from this group, send email to django-users...@googlegroups.com.
For more options, visit this group at http://groups.google.com/group/django-users?hl=en.