diff --git a/frx_challenges/web/templates/submission/evaluation.html b/frx_challenges/web/templates/submission/evaluation.html deleted file mode 100644 index b3241f7..0000000 --- a/frx_challenges/web/templates/submission/evaluation.html +++ /dev/null @@ -1,89 +0,0 @@ -{% extends "page.html" %} -{% block head %} - - - - - -{% endblock head %} -{% block body %} -
-
-
-

Evaluation

-
-
-
-
- - - - - -
- -
-{% endblock body %} diff --git a/frx_challenges/web/urls.py b/frx_challenges/web/urls.py index 1af64ff..9a9bc4d 100644 --- a/frx_challenges/web/urls.py +++ b/frx_challenges/web/urls.py @@ -27,8 +27,5 @@ name="collaborators-delete", ), path("versions/", versions.view, name="versions-view"), - path( - "evaluation/", submissions.detail_evaluation, name="evaluation-detail" - ), path("", pages.home, name="home"), ] diff --git a/frx_challenges/web/views/submissions.py b/frx_challenges/web/views/submissions.py index 9af8a4a..869ea02 100644 --- a/frx_challenges/web/views/submissions.py +++ b/frx_challenges/web/views/submissions.py @@ -6,7 +6,7 @@ from ..forms import SubmissionForm from ..md import MARKDOWN_RENDERER -from ..models import Collaborator, Evaluation, Submission +from ..models import Collaborator, Submission @login_required @@ -145,15 +145,6 @@ def edit(request: HttpRequest, id: int) -> HttpResponse: ) -@login_required -def detail_evaluation(request: HttpRequest, id: int) -> HttpResponse: - """ - View evaluation of a submission version - """ - evaluation = Evaluation.objects.filter(version__user=request.user, id=id) - return render(request, "submission/evaluation.html", {"evaluation": evaluation}) - - def _validate_collaborator(request: HttpRequest, submission_id: int): """ Check if current user is a collaborator on this submission