diff --git a/credentials/apps/records/views.py b/credentials/apps/records/views.py index b9e146018..af3c6861f 100644 --- a/credentials/apps/records/views.py +++ b/credentials/apps/records/views.py @@ -28,7 +28,6 @@ from credentials.apps.records.constants import UserCreditPathwayStatus from credentials.apps.records.messages import ProgramCreditRequest from credentials.apps.records.models import ProgramCertRecord, UserCreditPathway -from credentials.apps.records.utils import get_user_program_data from credentials.shared.constants import PathwayType from .constants import RECORDS_RATE_LIMIT @@ -104,33 +103,6 @@ def get(self, request, *args, **kwargs): return HttpResponseRedirect(settings.LEARNER_RECORD_MFE_RECORDS_PAGE_URL) -class ProgramListingView(RecordsListBaseView): - def _get_programs(self): - return get_user_program_data( - self.request.user.username, - self.request.site, - include_empty_programs=True, - include_retired_programs=False, - ) - - def get_context_data(self, **kwargs): - context = super().get_context_data(**kwargs) - - context["title"] = _("Program Listing View") - context["program_help"] = _( - "The following is a list of all active programs for which program records are being generated." - ) - - return context - - def dispatch(self, request, *args, **kwargs): - # Kick out non staff and non superuser users (skipping anonymous users, - # because they are redirected to a login screen instead) - if not request.user.is_anonymous and not request.user.is_staff and not request.user.is_superuser: - raise http.Http404() - return super().dispatch(request, *args, **kwargs) - - class ProgramRecordView(ConditionallyRequireLoginMixin, RecordsEnabledMixin, TemplateView, ThemeViewMixin): """ The ProgramRecordView view continues to be required after converting our legacy frontend to the Learner Record MFE. diff --git a/credentials/conf/locale/eo/LC_MESSAGES/django.mo b/credentials/conf/locale/eo/LC_MESSAGES/django.mo index 66074e39a..13fa51d52 100644 Binary files a/credentials/conf/locale/eo/LC_MESSAGES/django.mo and b/credentials/conf/locale/eo/LC_MESSAGES/django.mo differ diff --git a/credentials/conf/locale/eo/LC_MESSAGES/django.po b/credentials/conf/locale/eo/LC_MESSAGES/django.po index 190bb2654..b87bed099 100644 --- a/credentials/conf/locale/eo/LC_MESSAGES/django.po +++ b/credentials/conf/locale/eo/LC_MESSAGES/django.po @@ -633,18 +633,6 @@ msgstr "" "Ûsér çrédït päthwäýs çän önlý ßé çönnéçtéd tö çrédït päthwäýs. Ⱡ'σяєм ιρѕυм " "∂σłσя ѕιт αмєт, ¢σηѕє¢тєтυя α#" -#: apps/records/views.py -msgid "Program Listing View" -msgstr "Prögräm Lïstïng Vïéw Ⱡ'σяєм ιρѕυм ∂σłσя ѕιт αмєт, #" - -#: apps/records/views.py -msgid "" -"The following is a list of all active programs for which program records are" -" being generated." -msgstr "" -"Thé föllöwïng ïs ä lïst öf äll äçtïvé prögräms för whïçh prögräm réçörds äré" -" ßéïng générätéd. Ⱡ'σяєм ιρѕυм ∂σłσя ѕιт αмєт, ¢σ#" - #: apps/verifiable_credentials/admin.py msgid "Issuer ID" msgstr "Ìssüér ÌD Ⱡ'σяєм ιρѕυм ∂σł#" diff --git a/credentials/conf/locale/rtl/LC_MESSAGES/django.mo b/credentials/conf/locale/rtl/LC_MESSAGES/django.mo index cca532ada..24b820aae 100644 Binary files a/credentials/conf/locale/rtl/LC_MESSAGES/django.mo and b/credentials/conf/locale/rtl/LC_MESSAGES/django.mo differ diff --git a/credentials/conf/locale/rtl/LC_MESSAGES/django.po b/credentials/conf/locale/rtl/LC_MESSAGES/django.po index 469f79ecd..5a64fdeda 100644 --- a/credentials/conf/locale/rtl/LC_MESSAGES/django.po +++ b/credentials/conf/locale/rtl/LC_MESSAGES/django.po @@ -543,18 +543,6 @@ msgstr "øʇɥǝɹ" msgid "User credit pathways can only be connected to credit pathways." msgstr "Ʉsǝɹ ɔɹǝdᴉʇ dɐʇɥʍɐʎs ɔɐn ønlʎ bǝ ɔønnǝɔʇǝd ʇø ɔɹǝdᴉʇ dɐʇɥʍɐʎs." -#: apps/records/views.py -msgid "Program Listing View" -msgstr "Ᵽɹøƃɹɐɯ Łᴉsʇᴉnƃ Vᴉǝʍ" - -#: apps/records/views.py -msgid "" -"The following is a list of all active programs for which program records are" -" being generated." -msgstr "" -"Ŧɥǝ ɟølløʍᴉnƃ ᴉs ɐ lᴉsʇ øɟ ɐll ɐɔʇᴉʌǝ dɹøƃɹɐɯs ɟøɹ ʍɥᴉɔɥ dɹøƃɹɐɯ ɹǝɔøɹds ɐɹǝ" -" bǝᴉnƃ ƃǝnǝɹɐʇǝd." - #: apps/verifiable_credentials/admin.py msgid "Issuer ID" msgstr "Ɨssnǝɹ ƗĐ" diff --git a/credentials/urls.py b/credentials/urls.py index 8f8fd7266..615e563b5 100644 --- a/credentials/urls.py +++ b/credentials/urls.py @@ -30,7 +30,6 @@ from credentials.apps.badges.toggles import is_badges_enabled from credentials.apps.core import views as core_views from credentials.apps.plugins.constants import PROJECT_TYPE -from credentials.apps.records.views import ProgramListingView from credentials.apps.verifiable_credentials.toggles import is_verifiable_credentials_enabled from credentials.views import FaviconView @@ -63,7 +62,6 @@ path("health/", core_views.health, name="health"), path("management/", include(("credentials.apps.edx_django_extensions.urls", "management"), namespace="management")), path("records/", include(("credentials.apps.records.urls", "records"), namespace="records")), - re_path(r"^program-listing/", ProgramListingView.as_view(), name="program_listing"), re_path(r"^favicon\.ico$", FaviconView.as_view(permanent=True)), ]