Whoops, sorry -- I didn't realize you weren't using CBVs. :)
On Wed, Nov 2, 2011 at 12:43 PM, Furbee wrote:
> I think your 'answer' is going to exist in POST in either case. Perhaps
> change the construct of your logic to:
>
> if 'evaluation' in request.POST:
> return render_to_respo
I think your 'answer' is going to exist in POST in either case. Perhaps
change the construct of your logic to:
if 'evaluation' in request.POST:
return render_to_response('results.html')
elif 'form-0-answer' in request.POST:
answer = request.POST.get('answer','')
val
Try changing your success_url to this same page.
On Wed, Nov 2, 2011 at 11:00 AM, asif.jama...@rezayat.net <
asif.jama...@rezayat.net> wrote:
> How can i access the form fields in django views.
>
> Suppose i have modelform called
>
>
> class QuestionForm(forms.ModelForm):
>
>
> answer = forms.Ch
3 matches
Mail list logo