﻿id	summary	reporter	owner	description	type	status	component	version	severity	resolution	keywords	cc	stage	has_patch	needs_docs	needs_tests	needs_better_patch	easy	ui_ux
19790	myform.is_valid() is always giving me false!	anonymous	nobody	"here's what I have in models.py class Recipe(models.Model):
   
 name = models.CharField(max_length=200)
    prep_steps = models.TextField()
    time_to_prepare	= models.IntegerField()
    
        
class RecipeForm(ModelForm):
    class Meta:
        model = Recipe
and in views.py I have 

def add(request):
    if 'name' in request.POST:
        form = RecipeForm(request.POST)
        if form.is_valid():
            r.save(force_insert=True)
            return HttpResponse(""it's  working"")
    else:
        return render_to_response('create_recipe.html', {'error': True})
    return HttpResponse(""it's NOT working"")

for some reason the form.is_valid() is always false.
Can someone see what I can fix in it ?

Thanks "	Uncategorized	closed	Uncategorized	1.4	Normal	invalid	is_valis()	samantoutita@…	Unreviewed	0	0	0	0	0	0
