Skip to content

Commit 23095ad

Browse files
authored
Contract template updates (#1877)
* update default for sponsor information in template include description per #1876 * render full mailing address for sponsor * update typos identified by ewa
1 parent ffee67b commit 23095ad

File tree

3 files changed

+2
-2
lines changed

3 files changed

+2
-2
lines changed

sponsors/models.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -819,7 +819,7 @@ def new(cls, sponsorship):
819819
sponsor = sponsorship.sponsor
820820
primary_contact = sponsor.primary_contact
821821

822-
sponsor_info = f"{sponsor.name} with address {sponsor.full_address} and contact {sponsor.primary_phone}"
822+
sponsor_info = f"{sponsor.name}, {sponsor.description}"
823823
sponsor_contact = ""
824824
if primary_contact:
825825
sponsor_contact = f"{primary_contact.name} - {primary_contact.phone} | {primary_contact.email}"

sponsors/tests/test_models.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -451,7 +451,7 @@ def test_create_new_contract_from_sponsorship_sets_sponsor_info_and_contact(
451451
contract.refresh_from_db()
452452

453453
sponsor = self.sponsorship.sponsor
454-
expected_info = f"{sponsor.name} with address {sponsor.full_address} and contact {sponsor.primary_phone}"
454+
expected_info = f"{sponsor.name}, {sponsor.description}"
455455

456456
self.assertEqual(contract.sponsorship, self.sponsorship)
457457
self.assertEqual(contract.sponsor_info, expected_info)
270 Bytes
Binary file not shown.

0 commit comments

Comments
 (0)