def solution_run_checker(request, solution_id): solution = Solution.objects.get(pk=solution_id) check(solution, True) # Since Django suxx (see https://code.djangoproject.com/ticket/8764) and cant mix args with kwargs in reverse(), # we suck too, and just mess around with the url return HttpResponseRedirect( reverse('solution_detail', args=[solution_id]) + 'full')
def check(self, run_secret = 0): """Builds and tests this solution.""" from checker.models import check check(self, run_secret)
def solution_run_checker(request,solution_id): solution = Solution.objects.get(pk=solution_id) check(solution,True) # Since Django suxx (see https://code.djangoproject.com/ticket/8764) and cant mix args with kwargs in reverse(), # we suck too, and just mess around with the url return HttpResponseRedirect(reverse('solution_detail', args=[solution_id]) + 'full')
def solution_run_checker(request,solution_id): solution = Solution.objects.get(pk=solution_id) check(solution,True) return HttpResponseRedirect(reverse('solution_detail_full', args=[solution_id]))
def solution_run_checker(request, solution_id): solution = Solution.objects.get(pk=solution_id) check(solution, True) return HttpResponseRedirect( reverse('solution_detail_full', args=[solution_id]))