Re: Control json serialization

2011-02-26 Thread Alexander Bolotnov
erialization to models I mean being able to def something simple in it that will use a handy serializer and return json/xml presentation. Sasha Bolotnov www.gorizont-zavalen.ru On Sun, Feb 27, 2011 at 2:37 AM, Russell Keith-Magee < russ...@keith-magee.com> wrote: > On Sun, Feb 27, 20

Re: 'ascii' codec can't encode characters in position 0-8: ordinal not in range(128)

2011-02-22 Thread Alexander Bolotnov
I fixed this by change the unicode to return self.name - but why was this failing anyway? -- You received this message because you are subscribed to the Google Groups "Django developers" group. To post to this group, send email to django-developers@googlegroups.com. To unsubscribe from this gro

'ascii' codec can't encode characters in position 0-8: ordinal not in range(128)

2011-02-22 Thread Alexander Bolotnov
I created a simple model: class Menu(models.Model): name = models.CharField(null=False, blank=False,unique=True,max_length=50) url = models.CharField(null=False, blank=False, unique=True,max_length=100) sortOrder = models.IntegerField(null=False, blank=False, default=0) def __uni