Skip to content

Commit

Permalink
Remove redundant decorators.
Browse files Browse the repository at this point in the history
  • Loading branch information
nmenezes0 committed Aug 12, 2024
1 parent cbc13c4 commit af6f138
Show file tree
Hide file tree
Showing 3 changed files with 0 additions and 5 deletions.
3 changes: 0 additions & 3 deletions consultation_analyser/consultations/views/consultations.py
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,6 @@
NO_THEMES_YET_MESSAGE = "We are processing your consultation. Themes have not been generated yet."


@login_required
def index(request: HttpRequest) -> HttpResponse:
consultations = request.user.consultation_set.all()
user = request.user
Expand All @@ -29,7 +28,6 @@ def index(request: HttpRequest) -> HttpResponse:


@user_can_see_consultation
@login_required
def show(
request: HttpRequest, consultation_slug: str, processing_run_slug: Optional[str] = None
) -> HttpResponse:
Expand All @@ -51,7 +49,6 @@ def show(
return render(request, "consultations/consultations/show.html", context)


@login_required
def new(request: HttpRequest):
if not request.POST:
form = ConsultationUploadForm()
Expand Down
1 change: 0 additions & 1 deletion consultation_analyser/consultations/views/questions.py
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,6 @@ def get_outliers_info(processing_run: models.ProcessingRun, question: models.Que


@user_can_see_consultation
@login_required
def show(
request: HttpRequest,
consultation_slug: str,
Expand Down
1 change: 0 additions & 1 deletion consultation_analyser/consultations/views/responses.py
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,6 @@


@user_can_see_consultation
@login_required
def index(
request: HttpRequest,
consultation_slug: str,
Expand Down

0 comments on commit af6f138

Please sign in to comment.