Changeset - b0e62495d8e8
[Not reviewed]
0 1 1
Brett Smith - 5 years ago 2019-01-07 22:05:08
brettcsmith@brettcsmith.org
registrasion.models: Add help_text to dietary_restrictions.
2 files changed with 21 insertions and 0 deletions:
0 comments (0 inline, 0 general)
pinaxcon/registrasion/migrations/0007_auto_20190102_1617.py
Show inline comments
 
new file 100644
 
# -*- coding: utf-8 -*-
 
# Generated by Django 1.10.7 on 2019-01-02 21:17
 
from __future__ import unicode_literals
 

	
 
from django.db import migrations, models
 

	
 

	
 
class Migration(migrations.Migration):
 

	
 
    dependencies = [
 
        ('pinaxcon_registrasion', '0006_auto_20190102_1140'),
 
    ]
 

	
 
    operations = [
 
        migrations.AlterField(
 
            model_name='attendeeprofile',
 
            name='dietary_restrictions',
 
            field=models.CharField(blank=True, help_text=b'For example: vegetarian, vegan, gluten intolerant, low carb, allergic to _____, …', max_length=256, verbose_name=b'Food allergies, intolerances, or dietary restrictions'),
 
        ),
 
    ]
pinaxcon/registrasion/models.py
Show inline comments
...
 
@@ -102,36 +102,37 @@ class AttendeeProfile(rego.AttendeeProfileBase):
 
        max_length=1024,
 
        blank=True,
 
    )
 
    address_suburb = models.CharField(
 
        verbose_name="City/Town/Suburb",
 
        max_length=1024,
 
        blank=True,
 
    )
 
    address_postcode = models.CharField(
 
        verbose_name="Postal/Zip code",
 
        max_length=1024,
 
        blank=True,
 
    )
 
    country = CountryField(
 
        default="US",
 
    )
 
    state = models.CharField(
 
        max_length=256,
 
        verbose_name="State/Territory/Province",
 
        blank=True,
 
    )
 

	
 
    dietary_restrictions = models.CharField(
 
        verbose_name="Food allergies, intolerances, or dietary restrictions",
 
        help_text="For example: vegetarian, vegan, gluten intolerant, low carb, allergic to _____, …",
 
        max_length=256,
 
        blank=True,
 
    )
 

	
 
    agreement = models.BooleanField(
 
        verbose_name="Agreement",
 
        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)