diff --git a/pinaxcon/registrasion/migrations/0007_auto_20170930_1610.py b/pinaxcon/registrasion/migrations/0007_auto_20170930_1610.py
new file mode 100644
index 00000000..c5dafab2
--- /dev/null
+++ b/pinaxcon/registrasion/migrations/0007_auto_20170930_1610.py
@@ -0,0 +1,26 @@
+# -*- coding: utf-8 -*-
+# Generated by Django 1.11.5 on 2017-09-30 06:10
+from __future__ import unicode_literals
+
+from django.db import migrations, models
+
+
+class Migration(migrations.Migration):
+
+ dependencies = [
+ ('pinaxcon_registrasion', '0006_auto_20170927_2301'),
+ ]
+
+ operations = [
+ migrations.AddField(
+ model_name='attendeeprofile',
+ name='agreement',
+ field=models.BooleanField(default=False, help_text='I agree to the terms and conditions of attendance, and I have read, understood, and agree to act according to the standards set forth in our Code of Conduct.'),
+ preserve_default=False,
+ ),
+ migrations.AlterField(
+ model_name='attendeeprofile',
+ name='state',
+ field=models.CharField(blank=True, help_text='If your Country is Australia, you must list a state.', max_length=256, verbose_name='State/Territory/Province'),
+ ),
+ ]
diff --git a/pinaxcon/registrasion/models.py b/pinaxcon/registrasion/models.py
index d341738d..db28ba26 100644
--- a/pinaxcon/registrasion/models.py
+++ b/pinaxcon/registrasion/models.py
@@ -66,6 +66,12 @@ class AttendeeProfile(rego.AttendeeProfileBase):
"Please fill in line 1 before filling line 2",
))
+ if not self.agreement:
+ errors.append((
+ "agreement",
+ "Agreement to the terms and conditions and to the Code of Conduct is required.",
+ ))
+
if errors:
raise ValidationError(dict(errors))
@@ -138,6 +144,7 @@ class AttendeeProfile(rego.AttendeeProfileBase):
state = models.CharField(
max_length=256,
verbose_name="State/Territory/Province",
+ help_text="If your Country is Australia, you must list a state.",
blank=True,
)
@@ -194,6 +201,17 @@ class AttendeeProfile(rego.AttendeeProfileBase):
blank=True,
)
+ agreement = models.BooleanField(
+ blank=False,
+ help_text="I agree to the "
+ " "
+ "terms and conditions of attendance, and I have read, "
+ "understood, and agree to act according to the standards set "
+ "forth in our "
+ ""
+ "Code of Conduct."
+ )
+
past_lca = models.ManyToManyField(
PastEvent,
diff --git a/vendor/registrasion/registrasion/migrations/0008_auto_20170930_1843.py b/vendor/registrasion/registrasion/migrations/0008_auto_20170930_1843.py
new file mode 100644
index 00000000..c4ed7ae7
--- /dev/null
+++ b/vendor/registrasion/registrasion/migrations/0008_auto_20170930_1843.py
@@ -0,0 +1,20 @@
+# -*- coding: utf-8 -*-
+# Generated by Django 1.11.5 on 2017-09-30 08:43
+from __future__ import unicode_literals
+
+from django.db import migrations, models
+
+
+class Migration(migrations.Migration):
+
+ dependencies = [
+ ('registrasion', '0007_merge_20170929_2331'),
+ ]
+
+ operations = [
+ migrations.AlterField(
+ model_name='attendee',
+ name='guided_categories_complete',
+ field=models.ManyToManyField(blank=True, to='registrasion.Category'),
+ ),
+ ]