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
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:
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
3 matches
Mail list logo