title: Django Form exclude a field in form.as_div()
body: <p>Hi I am trying to register a user with address. I am trying to generate form with <a href="http://django-angular.readthedocs.org/" rel="nofollow">http://django-angular.readthedocs.org/</a></p>
  
  <pre><code># models.py
  class Address(models.Model):
      user        = models.ForeignKey(User)
      line_1      = models.CharField(max_length=256, null=True, blank=True)
      ...
  # forms.py
  class AddressForm(NgFormValidationMixin, Bootstrap3FormMixin, NgModelForm):
      class Meta:
          model = Address
          fields = ('line_1','city', 'state', 'user')
          # exclude = ('user',)  #this line
  # views.py
  class Register(APIView):
      def post(self, request):
          ...
          if userform.is_valid():
              user = userform.save()
              address = request.data['address']
              address['user'] = user.id
              addressform = AddressForm(address)
              if addressform.is_valid():
                  addressform.save()  # gives error here if I add exclude('user', ) in form
              # else
                  # revert the changes
          # else
              # revert the changes
  </code></pre>
  
  <p>If I generate form as 
  <code>AddressForm().as_div()</code> it fetches all the user detail and it is available as dropdown to a registering user. (Big No) </p>
  
  <p>So I add <code>exclude = ('user',)</code> to the form. Then AddressForm gives error in my view saying, <code>IntegrityError: accounts_address.user_id may not be NULL</code></p>
  
  <p>How to use same form in template &amp; view?</p>