Open GoogleCodeExporter opened 9 years ago
I was running into the same issue. I eventually got it to work after much
trial and error. It seems the problem was that I had a __unicode__ function
defined for my model that had a try...except clause in it. Don't ask me why
that would cause a problem, but it seems it made the unicode conversion fail
(in the interactive shell it reported that it couldn't convert NoneType to
unicode). All I know is that once I changed the logic in the __unicode__
function to if...else instead of try...except, it worked. Hope this helps
someone who runs into the same issue.
Original comment by xorbi...@gmail.com
on 17 Sep 2010 at 5:11
Thanks, in my case it was really related to the __unicode__() method of the
model.
def __unicode__(self):
# works:
return u'%s' % self.name
# fails with the described above error:
#return self.name
This is odd as it works in plain django. Can it be considered a bug or a place
for an improvement? If not -- feel free to close the issue.
Original comment by fake.mik...@gmail.com
on 18 Nov 2010 at 9:48
Original issue reported on code.google.com by
fake.mik...@gmail.com
on 10 Aug 2010 at 10:37Attachments: