On Friday 10 February 2006 23:28, Andu wrote:

> Now, addinga a currency works fine. Trying to add a customdata, when
> saving, yelds a template exception. I've read on this group that this
> might be because something's wrong in the model. Any ideas?

The only thing that is unusual in your model is the use of 'to_field'.  
It is possible that there is a bug in the admin when 'to_field' is 
used.  You could try changing your example to simply remove it (so that 
the default primary key is used instead), and see if that works.  
Alternatively, change the Currency model so that 'name' is the primary 
key (in which case you can still remove the to_field in CustomData).

If it does work with those changes, then it is probably a bug with 
to_field - it would be really helpful in that case if you file a 
ticket.

Thanks,

Luke

-- 
Life is complex. It has both real and imaginary components. 

Luke Plant || L.Plant.98 (at) cantab.net || http://lukeplant.me.uk/

Reply via email to