Thursday, July 1, 2010

Re: Newbie Q: Is there a way to prevent Django from creating fields w. 'Not Null' by default?

On Thu, Jul 1, 2010 at 4:16 PM, Barto <jgbartolucci@gmail.com> wrote:
I've been following 'Writing Your First Django App. Pt. 1'
substituting my own object names in experiment.

Noticed that when I told Django to create my tables, it did so giving
all (psycopg2/postgres) fields the 'not null' setting. Easy to change
this via PgAdmin, but I'm wondering if it is possible to prevent 'not
null' from being assumed as default.


--
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+unsubscribe@googlegroups.com.
For more options, visit this group at http://groups.google.com/group/django-users?hl=en.

No comments:

Post a Comment