@anonymous_csrf
@mobile_template('questions/{mobile/}marketplace_developer_request.html')
def marketplace_developer_request(request, template):
 error_message = None
 if (request.method == 'GET'):
  form = MarketplaceDeveloperRequestForm(request.user)
 else:
  form = MarketplaceDeveloperRequestForm(request.user, request.POST)
  if form.is_valid():
   try:
    form.submit_ticket()
    return HttpResponseRedirect(reverse('questions.marketplace_aaq_success'))
   except ZendeskError:
    error_message = ZENDESK_ERROR_MESSAGE
 return render(request, template, {'form': form, 'error_message': error_message})

@ anonymous_csrf @ mobile_template ( 'questions/{mobile/}marketplace_developer_request.html' ) def marketplace_developer_request ( request , template ) : error_message = None if ( request . method == 'GET' ) : form = MarketplaceDeveloperRequestForm ( request . user ) else : form = MarketplaceDeveloperRequestForm ( request . user , request . POST ) if form . is_valid ( ) : try : form . submit_ticket ( ) return HttpResponseRedirect ( reverse ( 'questions.marketplace_aaq_success' ) ) except ZendeskError : error_message = ZENDESK_ERROR_MESSAGE return render ( request , template , { 'form' : form , 'error_message' : error_message } )
form page that handles developer requests for marketplace .