How does the formset work in django? -


i want display single form 2 times use formset. display form twice. how use formset validation? here code

def add_result(request): if request.method == 'post':     articleformset = formset_factory(resultform, extra=2)     form=articleformset(request.post)     if form.is_valid():         team=team.objects.all()         return httpresponseredirect('/success/') else:     team=team.objects.all()     articleformset = formset_factory(resultform, extra=2) variables = requestcontext(request, {'articleformset': articleformset})  return render_to_response('add_result.html',variables,) 


Comments

Popular posts from this blog

php - How to add and update images or image url in Volusion using Volusion API -

javascript - jQuery UI Splitter/Resizable for unlimited amount of columns -

javascript - IE9 error '$'is not defined -