title: How to reuse Django forms
body: <p>I want to reuse Django forms in following scenario:</p>
  
  <ol>
  <li>Make all form fields "read-only" while displaying</li>
  <li>Use the same form to get data while editing</li>
  </ol>
  
  <p>I've used the below function to make the field read-only while displaying the data:</p>
  
  <pre><code>class form1(modelForm):
      fields...
      def get_form(self, *args, **kwargs):
          super(form1, self).__init__(*args, **kwargs)
          for key in self.fields.keys():
              self.fields[key].widget.attrs['readonly'] = True
  </code></pre>
  
  <p>I also tried using the <strong>init</strong> function, but while editing I am unable to use "form1", Django still renders the form as read-only.</p>
  
  <p>A little help on how to achieve would be greatly appreciated.</p>