Re: How to present a calculated field in a admin edit form.

2012-07-21 Thread Karen Tracey
On Mon, Jul 16, 2012 at 3:45 AM, Erlend Dalen wrote: > I'm using Django 1.0 (beta_1) and have the following issue: > I have a method in a model that returns a calculated value and I would > like this value to be displayed in the admin edit form related to that view. > I have no problem showing the

Re: How to present a calculated field in a admin edit form.

2012-07-16 Thread tWoolie
What would it mean to django to have a formfield for a method anyway? You need to override the edit page template for that model. or You need to supply a custom form for the edit page that takes care of inserting and removing the calculated data on __init__ and clean -- You received this messa