diff --git a/src/registrar/tests/test_url_auth.py b/src/registrar/tests/test_url_auth.py index 39ca00f4d..3a045498a 100644 --- a/src/registrar/tests/test_url_auth.py +++ b/src/registrar/tests/test_url_auth.py @@ -24,6 +24,7 @@ SAMPLE_KWARGS = { "object_id": "3", "domain": "whitehouse.gov", "user_pk": "1", + "portfolio_id": "1", } # Our test suite will ignore some namespaces. diff --git a/src/registrar/views/index.py b/src/registrar/views/index.py index 95aca5587..f975b9803 100644 --- a/src/registrar/views/index.py +++ b/src/registrar/views/index.py @@ -14,6 +14,4 @@ def index(request): # This controls the creation of a new domain request in the wizard request.session["new_request"] = True - print("homepage view") - return render(request, "home.html", context) diff --git a/src/registrar/views/organizations.py b/src/registrar/views/organizations.py index d7496e60e..225587316 100644 --- a/src/registrar/views/organizations.py +++ b/src/registrar/views/organizations.py @@ -1,8 +1,9 @@ from django.shortcuts import get_object_or_404, render from registrar.models.portfolio import Portfolio from waffle.decorators import flag_is_active +from django.contrib.auth.decorators import login_required - +@login_required def organization_domains(request, portfolio_id): context = {} @@ -17,7 +18,7 @@ def organization_domains(request, portfolio_id): return render(request, "organization_domains.html", context) - +@login_required def organization_domain_requests(request, portfolio_id): context = {}