Add a club legal address, used for invoices/referee forms ahead of the home ground
New Club.legal_address/legal_zip_code/legal_city, editable from the identity page (management:club_settings). Official document headers (the dues invoice, the referee payment form) previously borrowed the club's home Location for this -- conflating "where we play" with "our registered address", which aren't always the same place. New club.services.invoicing.resolve_document_address(club) picks the club's own legal address when set, falling back to the home Location exactly as before when it isn't, so nothing breaks for a club that hasn't set one yet. Location.is_home now means only what it always should have: telling a home game from an away one. Renamed the shared "home_location" template/context variable to "document_address" on both PDFs to match -- it was never accurate once a legal address could win instead. Co-Authored-By: Claude Sonnet 5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01ECGMEwrc2k4D8VQuwjstj9
This commit is contained in:
@@ -0,0 +1,28 @@
|
||||
# Generated by Django 6.0.6 on 2026-08-21 15:45
|
||||
|
||||
from django.db import migrations, models
|
||||
|
||||
|
||||
class Migration(migrations.Migration):
|
||||
|
||||
dependencies = [
|
||||
('club', '0029_duesinvoice'),
|
||||
]
|
||||
|
||||
operations = [
|
||||
migrations.AddField(
|
||||
model_name='club',
|
||||
name='legal_address',
|
||||
field=models.CharField(blank=True, help_text="Street address for official documents (invoices, the referee payment form). Falls back to the home location's address when left blank -- set this when the club's registered address isn't where it actually plays.", max_length=255, verbose_name='legal address'),
|
||||
),
|
||||
migrations.AddField(
|
||||
model_name='club',
|
||||
name='legal_city',
|
||||
field=models.CharField(blank=True, max_length=255, verbose_name='legal city'),
|
||||
),
|
||||
migrations.AddField(
|
||||
model_name='club',
|
||||
name='legal_zip_code',
|
||||
field=models.CharField(blank=True, max_length=255, verbose_name='legal zip code'),
|
||||
),
|
||||
]
|
||||
Reference in New Issue
Block a user