Re: validation error in Django Admin

2012-12-14 Thread Chris Cogdon
Thanks for the follow up! On Wednesday, December 12, 2012 4:21:59 PM UTC-8, Mike Dewhirst wrote: > > I'm getting an unexpected validation error in Admin which baffles me. > Any hints appreciated ... here is the traceback > > http://dpaste.com/844972/ > > At the bottom of the traceback where the

[Solved] validation error in Django Admin

2012-12-13 Thread Mike Dewhirst
Thanks Chris It turned out I hadn't read the docs properly. Prior to posting the problem I had tried ... instance.item_pictogram_set.remove(pic) ... to be told the relatedmanager object didn't have a remove attribute when (I thought) it should. So I adjusted the database to make both

Re: validation error in Django Admin

2012-12-13 Thread Chris Cogdon
I'm going to take a guess that when you "drop one" of them, deleting it, there's still a query going on that might want to refer to the other one, and the to_python fails because that reference doesn't exist anymore. You might have better luck if you're using a OneToOne or ForeignKey (onetomany

validation error in Django Admin

2012-12-12 Thread Mike Dewhirst
I'm getting an unexpected validation error in Admin which baffles me. Any hints appreciated ... here is the traceback http://dpaste.com/844972/ At the bottom of the traceback where the error is raised, the local vars are ... self value u'33' key 'pk' When I save the item, it auto-