from forum.modules.decorators import decoratable
from forum.forms import *
from forum.models import *
from forum.modules.decorators import decoratable
from forum.forms import *
from forum.models import *
if form.is_valid():
if request.user.is_authenticated():
ask_action = AskAction(user=request.user, ip=request.META['REMOTE_ADDR']).save(data=form.cleaned_data)
if form.is_valid():
if request.user.is_authenticated():
ask_action = AskAction(user=request.user, ip=request.META['REMOTE_ADDR']).save(data=form.cleaned_data)
request.session['temp_node_type'] = 'question'
return HttpResponseRedirect(reverse('auth_action_signin', kwargs={'action': 'newquestion'}))
elif request.method == "POST" and "go" in request.POST:
request.session['temp_node_type'] = 'question'
return HttpResponseRedirect(reverse('auth_action_signin', kwargs={'action': 'newquestion'}))
elif request.method == "POST" and "go" in request.POST:
'email_validation_faq_url':reverse('faq') + '#validate',
}, context_instance=RequestContext(request))
'email_validation_faq_url':reverse('faq') + '#validate',
}, context_instance=RequestContext(request))