I have a "Person" model where I have a field defined like this:
sex = models.CharField(maxlength=1, default='M', choices=(('M',
'Male), ('F', "Female")))
Although this is a simple case, I'd like to be able to do raw SQL
inserts into the table and not have to worry about missing some
default values.
Is there a reason why default values for fields aren't enforced at the
database level or is this a design choice to support some particular
backend?
thanks,
vic
--
"Never attribute to malice that which can be adequately explained by
stupidity." - Hanlon's Razor
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups
"Django developers" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at
http://groups.google.com/group/django-developers?hl=en
-~----------~----~----~----~------~----~------~--~---