How to make a BinaryField editable in django?
<p>Here is my code:</p>

<pre><code>#models.py
class Upload(models.Model):
    #image = models.FileField()    #working code
    image = models.BinaryField()   #not working

#forms.py
class UploadModelForm(forms.ModelForm):
    class Meta:
        model = Upload
        fields = ('image')
        labels = { 'image': "Upload Image" }
        widgets = {
            'image' : forms.FileInput(attrs={'multiple': True})
        }
</code></pre>

<p>When I run that, it throws the following error:</p>

<blockquote>
  <p>'image' cannot be specified for Upload model form as it is a non-editable field</p>
</blockquote>

<p>But when I change the <code>BinaryField</code> to <code>FileField</code>, it is working fine. The problem is, in my database, <code>FileField</code> has a DataType <code>char</code> which is not what I want. I want the DataType to be <code>blob</code>.</p>

<p><strong>Edit:</strong>
I forgot to say that I have tried:</p>

<blockquote>
  <p><code>image = models.BinaryField(editable = True)</code></p>
</blockquote>

<p>and it is not working.</p>