Yeah, here's the model:
class Page(models.Model):
language = models.CharField(maxlength=2, choices=LANGUAGE_CHOICES)
title = models.CharField(maxlength=60)
path = models.SlugField(prepopulate_from=('language','title',))
content = models.TextField(blank=True)
class Admin():
list_filter = ['language']
list_display = ('title', 'language')
def __unicode__(self):
return self.title
It doesn't matter if the greek or cyrillic is in the title or the
content, both return that error. Note however that things like Þ and Ð
work just fine (won't work without __unicode__)
-Björn
On Oct 24, 12:45 pm, Kenneth Gonsalves <[EMAIL PROTECTED]> wrote:
> On 24-Oct-07, at 3:37 PM, bjornkri wrote:
>
> > 0.97-pre-SVN-6603 (just updated, had the same on -6596)
>
> are you using the __unicode__(self):
> return u"string to return"
>
> syntax?
>
> --
>
> regards
> kghttp://lawgon.livejournal.comhttp://nrcfosshelpline.in/web/
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups
"Django users" group.
To post to this group, send email to [email protected]
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
-~----------~----~----~----~------~----~------~--~---