if request.method == 'POST':
    choice = request.POST.get('choice', None)
if choice is not None:
    selected_choice = p.choice_set.get(pk=choice)
invalid literal for int() with base 10: 'on' Python-Django