title: Django form blank=False
body: <p>Currently, if a field is required, this can be enforced via the blank = False argument, such as:</p>
  
  <p><strong>models.py</strong></p>
  
  <pre><code>address1 = models.CharField(max_length=255,null=False,blank=False)
  </code></pre>
  
  <p>However, the validation is performed prior to the POST action, yielding something like this when trying to submit the form containing an empty field:</p>
  
  <p><a href="https://i.stack.imgur.com/a7Nnr.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/a7Nnr.png" alt="Example 1"></a></p>
  
  <p>I would prefer the validation to be done during the post step, like this:</p>
  
  <p><strong>models.py</strong></p>
  
  <pre><code>address1 = models.CharField(max_length=255,null=False,blank=true)
  </code></pre>
  
  <p><strong>forms.py</strong></p>
  
  <pre><code>class AddressForm(forms.ModelForm):
      def __init__(self,*args,**kwargs):
          super(AddressForm,self).__init__(*args,**kwargs)
          self.fields['address1'].required = True
  </code></pre>
  
  <p>And this yields the following result when trying to submit the form containing an empty field:</p>
  
  <p><a href="https://i.stack.imgur.com/K6xO6.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/K6xO6.png" alt="Example 2"></a></p>
  
  <p>But the problem with this, (as far as I can tell) is that I need to explicitly state the <code>required</code> attribute for each field on a case-by-case basis.</p>
  
  <p>Is there any way that I can associate <code>blank=False</code> as being representative of the <code>required=True</code> attribute, suppressing the first form validation (above), in favour of the second? </p>