Re: Django models and different types

2012-05-11 Thread Michael da Silva Pereira
Hi, Using a form did the trick, I did however have a issue with datetime formats. It appears the formats I got from the string values are not recognized. This sorted me out with that: from dateutil import parser if str(Customer._meta.get_field("pastel_"+col).get_internal_type()) =

Re: Django models and different types

2012-05-11 Thread Tom Evans
On Fri, May 11, 2012 at 12:39 PM, Michael da Silva Pereira wrote: > > Hi, > > Looking for some ideas around a type / conversion matching > issue I'm having with a big django model. > The model has tons of variables, and all being of different types > (int, nullbool, date, datetime, string). > > I'

Fwd: Django models and different types

2012-05-11 Thread Michael da Silva Pereira
Hi, Looking for some ideas around a type / conversion matching issue I'm having with a big django model. The model has tons of variables, and all being of different types (int, nullbool, date, datetime, string). I'm trying to pass data from a different database into the django model, but the othe