Changeset - 8d95a608dd50
[Not reviewed]
0 1 1
Brett Smith - 4 years ago 2019-09-30 15:50:20
brettcsmith@brettcsmith.org
registrasion.models: Update for CopyleftConf 2019.
2 files changed with 35 insertions and 20 deletions:
0 comments (0 inline, 0 general)
pinaxcon/registrasion/migrations/0006_auto_20190102_1140.py
Show inline comments
 
new file 100644
 
# -*- 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 <a href='/code-of-conduct'>Code of Conduct</a>. I also agree with the CopyleftConf <a href='/terms'>Terms and Conditions</a>.", verbose_name=b'Agreement'),
 
        ),
 
    ]
pinaxcon/registrasion/models.py
Show inline comments
...
 
@@ -123,32 +123,15 @@ class AttendeeProfile(rego.AttendeeProfileBase):
 

	
 
    dietary_restrictions = models.CharField(
 
        verbose_name="Food allergies, intolerances, or dietary restrictions",
 
        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 <a href='/code-of-conduct'> "
 
                  "North Bay Python Code of Conduct</a>. I also agree with the "
 
                  "North Bay Python <a href='/terms'>Terms and Conditions</a>.",
 
        help_text="I agree to act according to the <a href='/code-of-conduct'>"
 
                  "Code of Conduct</a>. I also agree with the "
 
                  "CopyleftConf <a href='/terms'>Terms and Conditions</a>.",
 
        blank=False,
 
        default=False,
 
    )
0 comments (0 inline, 0 general)