Account Options

  1. Sign in
The old Google Groups will be going away soon, but your browser is incompatible with the new version.
Google Groups Home
« Groups Home
models and NULL in postgres
There are currently too many topics in this group that display first. To make this topic appear first, remove this option from another topic.
There was an error processing your request. Please try again.
flag
  3 messages - Collapse all  -  Translate all to Translated (View all originals)
The group you are posting to is a Usenet group. Messages posted to this group will make your email address visible to anyone on the Internet.
Your reply message has not been sent.
Your post was successful
 
From:
To:
Cc:
Followup To:
Add Cc | Add Followup-to | Edit Subject
Subject:
Validation:
For verification purposes please type the characters you see in the picture below or the numbers you hear by clicking the accessibility icon. Listen and type the numbers you hear
 
hack  
View profile  
 More options Mar 15 2012, 10:18 pm
From: hack <scottma...@gmail.com>
Date: Thu, 15 Mar 2012 19:18:09 -0700 (PDT)
Local: Thurs, Mar 15 2012 10:18 pm
Subject: models and NULL in postgres

Something is a little strange with my database.  My models have fields
where the value is set as blank=True to allow null values.  My forms seem
to be saving values to the database just fine, even if the are blank/null.
 However, when I look at my database in phppgadmin all the rows show they
are set as NOT NULL, which implies they should not allow null values to be
saved.  Is there some bug with django and postres, which I am not aware of?
 Maybe just a bug in phppgadmin.  Thanks.


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Donald Stufft  
View profile  
 More options Mar 15 2012, 10:19 pm
From: Donald Stufft <donald.stu...@gmail.com>
Date: Thu, 15 Mar 2012 22:19:47 -0400
Local: Thurs, Mar 15 2012 10:19 pm
Subject: Re: models and NULL in postgres

Django uses an empty string instead of a NULL for an empty value for CharField and Charfield subclasses


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
hack  
View profile  
 More options Mar 15 2012, 10:34 pm
From: hack <scottma...@gmail.com>
Date: Thu, 15 Mar 2012 19:34:40 -0700 (PDT)
Local: Thurs, Mar 15 2012 10:34 pm
Subject: Re: models and NULL in postgres

Ahhh, that makes sense.  Thanks.  :)


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
End of messages
« Back to Discussions « Newer topic     Older topic »