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
Post a Comment