diff --git a/peachjam/js/components/ListFacets.vue b/peachjam/js/components/ListFacets.vue index a1ebba6c7..190a3aa45 100644 --- a/peachjam/js/components/ListFacets.vue +++ b/peachjam/js/components/ListFacets.vue @@ -11,7 +11,6 @@
{{ $t('Alphabetical') }} - {{ $t('Court') }} {{ $t('Document type') }} {{ $t('Judges') }} {{ $t('Attorneys') }} @@ -37,10 +36,6 @@ export default { type: Array, default: () => [] }, - courts: { - type: Array, - default: () => [] - }, alphabet: { type: Array, default: () => [] @@ -130,12 +125,6 @@ export default { type: 'radio', title: JSON.parse(document.querySelector('#data-labels').textContent).author }, - { - name: 'courts', - type: 'radio', - title: this.$t('Court') - }, - { name: 'docTypes', type: 'radio', diff --git a/peachjam/views/generic_views.py b/peachjam/views/generic_views.py index a8fe5862c..48344710e 100644 --- a/peachjam/views/generic_views.py +++ b/peachjam/views/generic_views.py @@ -11,7 +11,6 @@ CitationLink, CoreDocument, GenericDocument, - Judgment, LegalInstrument, Predicate, Relationship, @@ -66,8 +65,6 @@ def get_context_data(self, **kwargs): def add_facets(self, context): authors = [] - courts = [] - natures = [] # Initialize facet data values natures = list( { @@ -89,18 +86,6 @@ def add_facets(self, context): } ) - # Legislation objects don't have an associated author, hence empty authors list - if self.model is Judgment: - courts = list( - { - a - for a in self.form.filter_queryset( - self.get_base_queryset(), exclude="courts" - ).values_list("court__name", flat=True) - if a - } - ) - years = list( set( self.form.filter_queryset( @@ -114,7 +99,6 @@ def add_facets(self, context): context["facet_data"] = { "years": years, "authors": authors, - "courts": courts, "alphabet": lowercase_alphabet(), "natures": natures, }