def create_finale(request): if QuestGame.final_exists(): fq = QuestGame.get_final() else: fq = FinalQuest.objects.create(start=datetime.datetime.now(), end=datetime.datetime.now()) return HttpResponseRedirect(reverse('quest_edit', args=(fq.id,)))