From e76f2e7f3ab3c16a275e9e2822ed7d81e6a22b3a Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Tom=C3=A1=C5=A1=20Valenta?= <git@imaniti.org> Date: Wed, 22 Mar 2023 18:43:33 +0100 Subject: [PATCH] fix 500 upon contract submit --- contracts/admin.py | 4 ++-- contracts/templates/contracts/view_contract_filing_areas.html | 1 + contracts/templates/contracts/view_contract_issues.html | 1 + contracts/templates/contracts/view_contract_types.html | 1 + contracts/templates/contracts/view_contractees.html | 1 + contracts/templates/contracts/view_signees.html | 1 + 6 files changed, 7 insertions(+), 2 deletions(-) diff --git a/contracts/admin.py b/contracts/admin.py index 8216dbe..34394e3 100644 --- a/contracts/admin.py +++ b/contracts/admin.py @@ -82,13 +82,13 @@ class SigneeSignatureInline(NestedStackedInline): extra = 0 -class ContractFileInline(admin.TabularInline): +class ContractFileInline(NestedTabularInline): model = ContractFile form = ContractFileAdminForm extra = 0 -class ContractIntentInline(admin.TabularInline): +class ContractIntentInline(NestedTabularInline): model = ContractIntent extra = 0 diff --git a/contracts/templates/contracts/view_contract_filing_areas.html b/contracts/templates/contracts/view_contract_filing_areas.html index 2271ea3..4ee14b8 100644 --- a/contracts/templates/contracts/view_contract_filing_areas.html +++ b/contracts/templates/contracts/view_contract_filing_areas.html @@ -22,6 +22,7 @@ <tr> <td> <a + class="underline" href="{{ filing_area.url }}" >{{ filing_area.name }}</a> </td> diff --git a/contracts/templates/contracts/view_contract_issues.html b/contracts/templates/contracts/view_contract_issues.html index 07307cf..bbabe02 100644 --- a/contracts/templates/contracts/view_contract_issues.html +++ b/contracts/templates/contracts/view_contract_issues.html @@ -33,6 +33,7 @@ <tr> <td> <a + class="underline" href="{{ issue.url }}" >{{ issue.name }}</a> </td> diff --git a/contracts/templates/contracts/view_contract_types.html b/contracts/templates/contracts/view_contract_types.html index b5ffa05..6a674b6 100644 --- a/contracts/templates/contracts/view_contract_types.html +++ b/contracts/templates/contracts/view_contract_types.html @@ -21,6 +21,7 @@ <tr> <td> <a + class="underline" href="{{ type.url }}" >{{ type.name }}</a> </td> diff --git a/contracts/templates/contracts/view_contractees.html b/contracts/templates/contracts/view_contractees.html index 6a98377..6c33a7b 100644 --- a/contracts/templates/contracts/view_contractees.html +++ b/contracts/templates/contracts/view_contractees.html @@ -21,6 +21,7 @@ <tr> <td> <a + class="underline" href="{{ contractee.url }}" > <strong>{{ contractee.name }}</strong> diff --git a/contracts/templates/contracts/view_signees.html b/contracts/templates/contracts/view_signees.html index 3d09b0b..758e132 100644 --- a/contracts/templates/contracts/view_signees.html +++ b/contracts/templates/contracts/view_signees.html @@ -21,6 +21,7 @@ <tr> <td> <a + class="underline" href="{{ signee.url }}" > <strong>{{ signee.name }}</strong> -- GitLab