Re: Admin interface does not save routine object

2012-01-05 Thread Andy Oram
Yes (and sorry for getting your name wrong before, Brett). str(self.document) works. On Jan 4, 6:26 pm, Brett Epps wrote: > Oh, I think the problem is in the __unicode__() method of your Quiz8 > model.  You're returning self.document, which is a Document8 object and > not a unicode string.  Try r

Re: Admin interface does not save routine object

2012-01-04 Thread Brett Epps
Oh, I think the problem is in the __unicode__() method of your Quiz8 model. You're returning self.document, which is a Document8 object and not a unicode string. Try returning unicode(self.document) or something like '%d' % document.id. Brett On 1/4/12 5:07 PM, "Andy Oram" wrote: >Thanks, Bi

Re: Admin interface does not save routine object

2012-01-04 Thread Andy Oram
Thanks, Bill. I apologize for not including DEBUG output. Here is what seems relevant. It looks like the ForeignKey relationship filled in fields with the id's of the document and document version (which is what one would expect) and there was a problem converting it to a string. Request Me

Re: Admin interface does not save routine object

2012-01-04 Thread Brett Epps
Hi Andy, Could you send us a traceback from the 500 error page? (If you don't see one, you need to set DEBUG = True in settings.py.) Brett On 1/4/12 8:29 AM, "Andy Oram" wrote: >I am pasting in a pretty basic models.py here. It is fairly classic (I >actually started with Poll tutorial exampl

Admin interface does not save routine object

2012-01-04 Thread Andy Oram
I am pasting in a pretty basic models.py here. It is fairly classic (I actually started with Poll tutorial example) and I have stripped out anything that looks questionable. Through the standard admin interface, I can create a User8, a Documentversion8, and a Document8. However, after I fill out th