From 8d95a608dd50c23fd813107d5faa87d279267911 Mon Sep 17 00:00:00 2001 From: Brett Smith Date: Wed, 2 Jan 2019 15:39:31 -0500 Subject: [PATCH] registrasion.models: Update for CopyleftConf 2019. --- .../migrations/0006_auto_20190102_1140.py | 32 +++++++++++++++++++ pinaxcon/registrasion/models.py | 23 ++----------- 2 files changed, 35 insertions(+), 20 deletions(-) create mode 100644 pinaxcon/registrasion/migrations/0006_auto_20190102_1140.py diff --git a/pinaxcon/registrasion/migrations/0006_auto_20190102_1140.py b/pinaxcon/registrasion/migrations/0006_auto_20190102_1140.py new file mode 100644 index 0000000..dda18ba --- /dev/null +++ b/pinaxcon/registrasion/migrations/0006_auto_20190102_1140.py @@ -0,0 +1,32 @@ +# -*- coding: utf-8 -*- +# Generated by Django 1.10.7 on 2019-01-02 16:40 +from __future__ import unicode_literals + +from django.db import migrations, models + + +class Migration(migrations.Migration): + + dependencies = [ + ('pinaxcon_registrasion', '0005_auto_20181005_1630'), + ] + + operations = [ + migrations.RemoveField( + model_name='attendeeprofile', + name='accessibility_requirements', + ), + migrations.RemoveField( + model_name='attendeeprofile', + name='gender', + ), + migrations.RemoveField( + model_name='attendeeprofile', + name='newsletter', + ), + migrations.AlterField( + model_name='attendeeprofile', + name='agreement', + field=models.BooleanField(default=False, help_text=b"I agree to act according to the Code of Conduct. I also agree with the CopyleftConf Terms and Conditions.", verbose_name=b'Agreement'), + ), + ] diff --git a/pinaxcon/registrasion/models.py b/pinaxcon/registrasion/models.py index b09a981..b23a267 100644 --- a/pinaxcon/registrasion/models.py +++ b/pinaxcon/registrasion/models.py @@ -126,29 +126,12 @@ class AttendeeProfile(rego.AttendeeProfileBase): max_length=256, blank=True, ) - accessibility_requirements = models.CharField( - verbose_name="Accessibility-related requirements", - max_length=256, - blank=True, - ) - gender = models.CharField( - help_text="Gender data will only be used for demographic purposes.", - max_length=64, - blank=True, - ) - - newsletter = models.BooleanField( - verbose_name="Subscribe to North Bay Python newsletter", - help_text="Select to be subscribed to the low-volume North Bay Python " - "announcements newsletter", - blank=True, - ) agreement = models.BooleanField( verbose_name="Agreement", - help_text="I agree to act according to the " - "North Bay Python Code of Conduct. I also agree with the " - "North Bay Python Terms and Conditions.", + help_text="I agree to act according to the " + "Code of Conduct. I also agree with the " + "CopyleftConf Terms and Conditions.", blank=False, default=False, )