On Apr 15, 4:54 pm, zayatzz <alan.kesselm...@gmail.com> wrote: > Hello > > I recieve this kind of error message when in admin: > > Caught an exception while rendering: ('ascii', 'Madalal temperatuuril k > \xc3\xbcpsetatud stressivaba sea parim t\xc3\xbckk', 23, 24, 'ordinal > not in range(128)') > > The text should actually be "Madalal remperatuuril küpsetatud > stressivaba sea parim tükk". > > The model, that saves this information is: > class Retsept(models.Model): > name = models.CharField(max_length=100, verbose_name=_("Name"), > blank=False, null=False) > and other fields.... > > And the form for it is: > class RetseptForm(ModelForm): > about = forms.CharField(widget=TinyMCE(attrs={'style': 'width:370px', > 'rows': 15, 'theme':"simple"}), label = _("text here"), > required=False) > tags = TagField(label = _("tags"), > widget=TagAutocomplete(attrs={'class':'required'})) > name = forms.CharField(label = _("Name"), > widget=forms.TextInput(attrs={'class':'required'})) > class Meta: > model = Retsept > fields = ('name', 'about', 'image', 'tags',) > widgets = { > 'name': TextInput(attrs={'class': 'required' }) > } > > Can anyone tell me whats wrong with it? > > Alan
Almost every time I have seen this, it is an issue with the model's __unicode__ method. Can you post that? -- DR. -- You received this message because you are subscribed to the Google Groups "Django users" group. To post to this group, send email to django-us...@googlegroups.com. To unsubscribe from this group, send email to django-users+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/django-users?hl=en.