title: UnboundLocalError local variable 'context' referenced before assignment
body: <p>I am stuck at this error(UnboundLocalError local variable 'context' referenced before assignment) while saving form of almost same type other are working fine but this one is not and showing error </p>
  
  <pre><code>def clutchDetail(request):
  
  clutchDetail = ClutchDetail.objects.all()
  context = {'title': 'Clutch Detail',
             'active': 'active',
             'clutchDetail': clutchDetail,
             }
  return render(request, 'breedingRecApp/clutch_detail.html', context)
  </code></pre>
  
  <p>def clutchDetail_add(request):</p>
  
  <pre><code>if request.method == "POST":
      form = ClutchDetail_AddModelForm(request.POST or None)
      if form.is_valid():
          try:
              form.save()
              return redirect('breedingRecApp:clutch_detail')
  
          except:
              pass
  else:
      form = ClutchDetail_AddModelForm()
      context = {'title': 'Species Detail Add',
                 'active': 'active',
                 'model': ClutchDetail,
                 'form': form,
                 }
  return render(request, 'breedingRecApp/clutch_detail_add.html', context)
  </code></pre>
  
  <p>Please help me to fix this error I am newbie to Django. I've an other form code which 100% same that is working fine but this one gives me an error I am stuck at it:(</p>