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 <markki...@gmail.com> wrote:
> 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.py, so that i can let the database set the
> default values and not in django.
> i tried setting null=True, and blank=True, it did not work
> thanks
>

--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"Django users" group.
To post to this group, send email to django-users@googlegroups.com
To unsubscribe from this group, send email to 
django-users+unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/django-users?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to