Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

added tag and related cases cols #93

Merged
merged 1 commit into from
Jul 19, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 2 additions & 3 deletions archiv/tables.py
Original file line number Diff line number Diff line change
Expand Up @@ -53,14 +53,13 @@ class CourtDecissionTable(tables.Table):
merge = MergeColumn(verbose_name="keep | remove", accessor="pk")
keyword = tables.columns.ManyToManyColumn(verbose_name="Keywords")
author = tables.columns.ManyToManyColumn(verbose_name="Authors")
related_decision = tables.columns.ManyToManyColumn(verbose_name="Related decisions")
tag = tables.columns.ManyToManyColumn(verbose_name="Tags")
kwic = tables.columns.TemplateColumn(
template_code="{{ record.kwic|safe }}",
verbose_name="Keyword in Context",
orderable=False,
)
rank = tables.columns.TemplateColumn(
template_code="{{ record.rank|safe }}", verbose_name="Search Rank"
)

class Meta:
model = CourtDecission
Expand Down
4 changes: 2 additions & 2 deletions archiv/views.py
Original file line number Diff line number Diff line change
Expand Up @@ -180,8 +180,8 @@ class CourtDecissionListView(CustomListView):
filter_class = CourtDecissionListFilter
formhelper_class = CourtDecissionFilterFormHelper
table_class = CourtDecissionTable
init_columns = ["id", "file_number", "party", "kwic"]
exclude_columns = ["full_text", "vector_column"]
init_columns = ["id", "file_number", "party"]
exclude_columns = ["full_text", "vector_column", "year_book_issue"]
enable_merge = True

def get_queryset(self, **kwargs):
Expand Down