Skip to content

Commit

Permalink
Merge pull request #1391 from nationalarchives/feature/grc-subdivisions
Browse files Browse the repository at this point in the history
bump api client and utils and use to set GRC jurisdictions
  • Loading branch information
timcowlishaw authored Feb 2, 2024
2 parents b8746ac + dca72fa commit f074801
Show file tree
Hide file tree
Showing 5 changed files with 6 additions and 6 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@
<label for="court" class="metadata-component__main-labels">{% translate "judgment.court" %}</label>
<input type="text"
class="metadata-component__court-input"
value="{{ judgment.court }}"
value="{{ judgment.court_and_jurisdiction_identifier_string }}"
name="court"
id="court"
list="court-ids" />
Expand Down
2 changes: 1 addition & 1 deletion judgments/tests/test_document_edit.py
Original file line number Diff line number Diff line change
Expand Up @@ -49,7 +49,7 @@ def test_edit_judgment(self, mock_judgment, api_client):
"/edittest/4321/123",
"[4321] TEST 123",
)
api_client.set_document_court.assert_called_with(
api_client.set_document_court_and_jurisdiction.assert_called_with(
"/edittest/4321/123",
"Court of Testing",
)
Expand Down
2 changes: 1 addition & 1 deletion judgments/utils/view_helpers.py
Original file line number Diff line number Diff line change
Expand Up @@ -94,7 +94,7 @@ def get_context_data(self, **kwargs):
context["judgment"] = document

context["page_title"] = document.name
context["courts"] = caselawutils.courts.get_all()
context["courts"] = caselawutils.courts.get_all(with_jurisdictions=True)

context["editors"] = editors_dict()

Expand Down
2 changes: 1 addition & 1 deletion judgments/views/judgment_edit.py
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,7 @@ def post(self, request, *args, **kwargs):

# Set court
new_court = request.POST["court"]
api_client.set_document_court(judgment_uri, new_court)
api_client.set_document_court_and_jurisdiction(judgment_uri, new_court)

# Date
new_date = request.POST["judgment_date"]
Expand Down
4 changes: 2 additions & 2 deletions requirements/base.txt
Original file line number Diff line number Diff line change
Expand Up @@ -16,8 +16,8 @@ xmltodict~=0.13.0
requests-toolbelt~=1.0.0
lxml~=5.1.0
wsgi-basic-auth~=1.1.0
ds-caselaw-marklogic-api-client==21.0.0
ds-caselaw-utils~=1.3.3
ds-caselaw-marklogic-api-client==22.0.0
ds-caselaw-utils~=1.4.0
rollbar
django-stronghold==0.4.0
boto3~=1.34.2
Expand Down

0 comments on commit f074801

Please sign in to comment.