Re: Bug in Admin or in my model ?

2008-11-15 Thread Karen Tracey
On Sat, Nov 15, 2008 at 2:29 PM, Ivan Mincik <[EMAIL PROTECTED]> wrote: > On Saturday 15 November 2008 18:57, Karen Tracey wrote: > > > The bug in Django is that the attempt to report that your existing > > __unicode__ method generated an error generated yet another error, and I > > haven't quite

Re: Bug in Admin or in my model ?

2008-11-15 Thread Ivan Mincik
On Saturday 15 November 2008 18:57, Karen Tracey wrote: > There's a bug both in your models and in Django, I think. Your __unicode__ > method for class Metadata: > >def __unicode__(self): > >return "%s %s" % (self.vrstva,self.nazov) > > > > needs to be: > >def _

Re: Bug in Admin or in my model ?

2008-11-15 Thread Karen Tracey
There's a bug both in your models and in Django, I think. Your __unicode__ method for class Metadata: def __unicode__(self): >return "%s %s" % (self.vrstva,self.nazov) > needs to be: def __unicode__(self): > return u"%s %s" % (self.vrstva,self.nazov)

Re: Bug in Admin or in my model ?

2008-11-15 Thread Ivan Mincik
On Saturday 15 November 2008 17:34, Luke Seelenbinder wrote: > > You need to specify your encoding in your models file. > Like: # -*- coding: iso-8859-15 -*- > Look at http:// > evanjones.ca/python-utf8.html The sixth section of the page > explains. thanks for answer, but the first line in my mod

Re: Bug in Admin or in my model ?

2008-11-15 Thread Luke Seelenbinder
You need to specify your encoding in your models file. Like: # -*- coding: iso-8859-15 -*- Look at http:// evanjones.ca/python-utf8.html The sixth section of the page explains. Regards Luke On Nov 15, 11:09 am, Ivan Mincik <[EMAIL PROTECTED]> wrote: > Hi, > I have a problem when adding record by

Bug in Admin or in my model ?

2008-11-15 Thread Ivan Mincik
Hi, I have a problem when adding record by Django Admin and I am not sure where I have to look for it. Is this some problem in Django Admin or it can be solved by some configuration in model ? I use Foreign Key in table where I want to add record. Foreign Key is the field containing some non