From e58a1891d554bc1dc9aaffb724ae3f45e4964f25 Mon Sep 17 00:00:00 2001 From: Ben Sturmfels Date: Mon, 6 May 2024 17:15:45 +1000 Subject: [PATCH] Add migration for profile change, update CONFERENCE_ID for 2024 --- .../0019_attendeeprofile_sfc_sustainer.py | 18 ++++++++++++++++++ pinaxcon/registrasion/models.py | 8 ++++++++ pinaxcon/settings.py | 2 +- 3 files changed, 27 insertions(+), 1 deletion(-) create mode 100644 pinaxcon/registrasion/migrations/0019_attendeeprofile_sfc_sustainer.py diff --git a/pinaxcon/registrasion/migrations/0019_attendeeprofile_sfc_sustainer.py b/pinaxcon/registrasion/migrations/0019_attendeeprofile_sfc_sustainer.py new file mode 100644 index 00000000..3448b27e --- /dev/null +++ b/pinaxcon/registrasion/migrations/0019_attendeeprofile_sfc_sustainer.py @@ -0,0 +1,18 @@ +# Generated by Django 2.2.28 on 2024-05-06 00:00 + +from django.db import migrations, models + + +class Migration(migrations.Migration): + + dependencies = [ + ('pinaxcon_registrasion', '0018_auto_20230501_2052'), + ] + + operations = [ + migrations.AddField( + model_name='attendeeprofile', + name='sfc_sustainer', + field=models.BooleanField(blank=True, default=False, help_text='Financial support from Sustainers helps Conservancy\'s work in a strategic, long-term way.', verbose_name='Are you an SFC Sustainer?'), + ), + ] diff --git a/pinaxcon/registrasion/models.py b/pinaxcon/registrasion/models.py index a573a31d..4a4dbac0 100644 --- a/pinaxcon/registrasion/models.py +++ b/pinaxcon/registrasion/models.py @@ -220,6 +220,14 @@ class AttendeeProfile(rego.AttendeeProfileBase): blank=True, ) + sfc_sustainer = models.BooleanField( + verbose_name="Are you an SFC Sustainer?", + help_text="Financial support from Sustainers " + "helps Conservancy's work in a strategic, long-term way.", + blank=True, + default=False, + ) + def first_name(self): return wrap(self.name, 15, break_long_words=False)[0] diff --git a/pinaxcon/settings.py b/pinaxcon/settings.py index 09bf53e7..356914ab 100644 --- a/pinaxcon/settings.py +++ b/pinaxcon/settings.py @@ -369,7 +369,7 @@ AUTHENTICATION_BACKENDS = [ LOGIN_URL = '/account/login/' SESSION_EXPIRE_AT_BROWSER_CLOSE = True -CONFERENCE_ID = 2 +CONFERENCE_ID = 3 PROPOSAL_FORMS = { "aarch64-arm64": "pinaxcon.proposals.forms.AArch64ARM64ProposalForm", "bsd-unix": "pinaxcon.proposals.forms.BSDUnixProposalForm",