Re: Django Form Field: BoundField question

2012-01-05 Thread Sven
Hi Tom, thanks for the link, in case of 'datetime.date.today' the callable makes a lot of sense. I changed my class field so that the value is not more a class definition, now it is wrapped by some kind of a proxy instance to avoid the callable effect. -- Best Regards Sven On Thursday

Re: Django Form Field: BoundField question

2012-01-05 Thread Tom Evans
On Wed, Jan 4, 2012 at 5:25 PM, sassman wrote: > Hi, > > i'm using Django Version 1.3.1, can anyone say me why is the value > function in BoundField (FormField) makes a check if the value is > callable? > >    def value(self): >        """ >        Returns the value for this BoundField, using the

Django Form Field: BoundField question

2012-01-04 Thread sassman
Hi, i'm using Django Version 1.3.1, can anyone say me why is the value function in BoundField (FormField) makes a check if the value is callable? def value(self): """ Returns the value for this BoundField, using the initial value if the form is not bound or the data ot