On Aug 20, 4:05 pm, "Karen Tracey" <[EMAIL PROTECTED]> wrote:
>
> Have you defined a __unicode__ method for your model? If yes, what does it
> look like? Also are you using a binary collation?
>
Yes, the code:
class Mymodel(models.Model):
name = models.CharField(_('name'), max_length=50)
description = models.CharField(_('description'),max_length=200,
blank = True, null = True)
def __unicode__(self):
return self.name
class Meta:
verbose_name = _('mymodel')
"name" attribute is the one that store strings with accents.
I don't know about binary collation. I've read mysql documentation,
but don't understand if I've to define it through django or mysql and
how.
Thanks.
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups
"Django users" group.
To post to this group, send email to django-users@googlegroups.com
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at
http://groups.google.com/group/django-users?hl=en
-~----------~----~----~----~------~----~------~--~---