Add migration for profile change, update CONFERENCE_ID for 2024

This commit is contained in:
Ben Sturmfels 2024-05-06 17:15:45 +10:00
parent 53633bb1d0
commit e58a1891d5
Signed by: bsturmfels
GPG key ID: 023C05E2C9C068F0
3 changed files with 27 additions and 1 deletions

View file

@ -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 <a href="https://sfconservancy.org/sustainer/" target="_blank">Sustainers</a> helps Conservancy\'s work in a strategic, long-term way.', verbose_name='Are you an SFC Sustainer?'),
),
]

View file

@ -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 <a href=\"https://sfconservancy.org/sustainer/\" target=\"_blank\">Sustainers</a> "
"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]

View file

@ -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",