Re: to_python ignored with custom IntegerField

2007-11-03 Thread Stefan Foulis [spiderware gmbh]
Sorry for posting on the wrong list. I thought this was a rather "low- level" django problem :-) I'll re-post on django-users thanks On 4. Nov 2007, at 24:59, Malcolm Tredinnick wrote: > > On Sat, 2007-11-03 at 21:18 +0100, Stefan Foulis [spiderware gmbh] > wrote: >> I've tried to create a cus

Re: to_python ignored with custom IntegerField

2007-11-03 Thread Malcolm Tredinnick
On Sat, 2007-11-03 at 21:18 +0100, Stefan Foulis [spiderware gmbh] wrote: > I've tried to create a custom Field for the database to store > Timedelta objects. Since I only need exactness to the minute and won't > have any large timedeltas I'm using a simple Integer to store it in > the datab

to_python ignored with custom IntegerField

2007-11-03 Thread Stefan Foulis [spiderware gmbh]
I've tried to create a custom Field for the database to store Timedelta objects. Since I only need exactness to the minute and won't have any large timedeltas I'm using a simple Integer to store it in the database. Maybe I'll make this configurable later. this is the code: from