Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commit23095ad

Browse files
authored
Contract template updates (python#1877)
* update default for sponsor information in templateinclude description perpython#1876* render full mailing address for sponsor* update typos identified by ewa
1 parentffee67b commit23095ad

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
ifprimary_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)

[8]ページ先頭

©2009-2025 Movatter.jp