NOT NULL constraint failed error
<p>I want to select an event and upload a photo, but when I make migrations, it gives 
NOT NULL constraint failed: myapp_doc.event error. </p>

<p>I'm getting the error even after deleting the view. What should I do ?</p>

<h1>models</h1>

<pre><code>class Doc(models.Model):
    events = (
        (None, "choose one of it"),
        ('bbq', 'Barbeque '),
        ('meet', 'Meeting'),
    )
    doc = models.FileField(upload_to='uploads/')
    user = models.ForeignKey(User, null=False, blank=True)
    event = models.CharField(max_length=15, choices=events, null = True)
    def __unicode__(self):
        return unicode(self.user)
</code></pre>

<h1>View</h1>

<pre><code>def upload_file(request):
    user= request.user
    form = UploadFileForm(request.POST, request.FILES)
    if form.is_valid():
        doc = form.save(commit=False)
        doc.user = request.user
        doc.save()
        messages.success(request, 'Dosya Yuklendi')

    return HttpResponseRedirect('/uploadnew/')

return render(request, 'upload.html', {'form': form})


def upload_file(request):
    user= request.user
    form = UploadFileForm(request.POST, request.FILES)
    if form.is_valid():
        doc = form.save(commit=False)
        doc.user = request.user
        doc.save()
        messages.success(request, 'Dosya Yuklendi')

        return HttpResponseRedirect('/uploadnew/')

return render(request, 'upload.html', {'form': form})
</code></pre>