title: How to map model fields with form field in Django
body: <p>We have one application containing models.py which contains n no. of classes that inherits base class.We want to create form which dynamically takes value from user n saves in db but problem is that we want to use django form fields instead of django model forms.  </p>
  
  <p>As we know there are some fields missing in django forms such as <strong>PositiveIntegerField, CommaSeparetedIntegerFields</strong> etc. How can we achieve this using django form fields?<br>
  If we write follwing code in shell. </p>
  
  <pre><code>from djnago.db import models
  mvar = models.PositiveIntegerFields()
  
  from django import forms
  fvar = forms.PositiveIntegerFields()
  AttributeError: 'module' object has no attribute 'PositiveIntegerField'
  </code></pre>
  
  <p>forms.py</p>
  
  <pre><code>from django import forms
  
  class ContextForm(forms.Form):
      def __init__(self, rdict, *args, **kwargs):
          super(ContextForm, self).__init__(*args, **kwargs)
          for key in rdict.keys():
              self.fields['%s' % str(key)] = getattr(forms,rdict.get(key))()
  
  rdict = {'address': 'CharField','phone': 'CharField', 'Salary': 'PositiveIntegerField','first name': 'CharField','last name':'CharField'}
  </code></pre>