title: null value in column violetes not-null constraint in Django rest-api
body: <p>I have created API called <code>test_api</code> and trying to send data to using POSTman</p>
  <p>In my models.py I have a model structured like this</p>
  <pre><code>class test_API(models.Model):
      IDnumber = models.IntegerField(unique = True, primary_key = True, null=False, editable = False, blank=True)
      State = models.CharField(max_length = 256, null = True)
      Exlcludmethod = models.CharField(max_length=256, null=True)
     
  </code></pre>
  <p>I migrate this to postgresql database and all values in those columns are empty.
  <a href="https://i.stack.imgur.com/d8FGf.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/d8FGf.png" alt="enter image description here" /></a></p>
  <p>Then I used postman to send some data to API end point</p>
  <p>Getting error saying &lt;null value in column &quot;IDnumber&quot; violates not-null constraint
  DETAIL:  Failing row contains (null, CA, remove). &gt;</p>
  <p>What is the reason for this I searched but could not find a solution why this is happening</p>
  <p><a href="https://stackoverflow.com/questions/70919012/integrityerror-null-value-in-column-name-of-relation-tag-violates-not-null-c">IntegrityError null value in column &quot;name&quot; of relation &quot;tag&quot; violates not-null constraint</a></p>
  <p><a href="https://stackoverflow.com/questions/56539165/null-value-in-column-list-name-violates-not-null-constraint-detail">null value in column &quot;list_name&quot; violates not-null constraint DETAIL:</a></p>
  <p><a href="https://i.stack.imgur.com/L9ZfR.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/L9ZfR.png" alt="enter image description here" /></a></p>