Re: model filed with default type set in database

2009-03-25 Thread Russell Keith-Magee
On Thu, Mar 26, 2009 at 1:02 AM, mark wrote: > > so its not possible to model this in django? > >>  created timestamp without time zone DEFAULT now(), >>  number_polls integer DEFAULT 0, Depends on exactly what you are trying to achieve. Django doesn't support database-level defaults - Django's

Re: model filed with default type set in database

2009-03-25 Thread mark
so its not possible to model this in django? > created timestamp without time zone DEFAULT now(), > number_polls integer DEFAULT 0, thanks! On Tue, Mar 24, 2009 at 8:22 AM, mark wrote: > im a newbie to django. i have an existing database with default values > for field set in the database:

model filed with default type set in database

2009-03-24 Thread mark
im a newbie to django. i have an existing database with default values for field set in the database: for example: created timestamp without time zone DEFAULT now(), number_polls integer DEFAULT 0, i want to use django admin interface to manage tables. how do i set up these fields in models