title: Include a ColorField in a form django
body: <p>I'm trying to add a colorField using; <a href="https://djangosnippets.org/snippets/1261/" rel="nofollow noreferrer">https://djangosnippets.org/snippets/1261/</a></p>
  
  <p>I added these to my models.py, </p>
  
  <pre><code>class ColorField(models.CharField):
      def __init__(self, *args, **kwargs):
          kwargs['max_length'] = 10
          super(ColorField, self).__init__(*args, **kwargs)
  
      def formfield(self, **kwargs):
          kwargs['widget'] = ColorPickerWidget
          return super(ColorField, self).formfield(**kwargs)
  </code></pre>
  
  <p>Now in my forms.py, I am trying to use formField method, ( I 'am using a forms.Form form not a FormModel )<br>
  but doing:</p>
  
  <pre><code>star_color = ColorField.formfield(ColorField) 
  </code></pre>
  
  <p>I keep getting errors: unbound method formfield() must be called with ColorField instance as first argument (got type instance instea) ??</p>