From a1d57ad1db6e82e398f755305b69b1e7277a3bef Mon Sep 17 00:00:00 2001 From: Tobias Date: Sat, 29 Sep 2018 17:11:38 +1200 Subject: [PATCH] Add children to profile (fixes #136) --- .../0009_attendeeprofile_children.py | 20 +++++++++++++++++++ pinaxcon/registrasion/models.py | 11 ++++++++++ 2 files changed, 31 insertions(+) create mode 100644 pinaxcon/registrasion/migrations/0009_attendeeprofile_children.py diff --git a/pinaxcon/registrasion/migrations/0009_attendeeprofile_children.py b/pinaxcon/registrasion/migrations/0009_attendeeprofile_children.py new file mode 100644 index 00000000..f7312e5c --- /dev/null +++ b/pinaxcon/registrasion/migrations/0009_attendeeprofile_children.py @@ -0,0 +1,20 @@ +# -*- coding: utf-8 -*- +# Generated by Django 1.11.15 on 2018-09-29 05:09 +from __future__ import unicode_literals + +from django.db import migrations, models + + +class Migration(migrations.Migration): + + dependencies = [ + ('pinaxcon_registrasion', '0008_remove_attendeeprofile_agreement'), + ] + + operations = [ + migrations.AddField( + model_name='attendeeprofile', + name='children', + field=models.CharField(blank=True, help_text="Linux.conf.au 2019 is a family friendly conference and provides free child-care for pre-school children from 6 months up to 5 years. We hope to also provide a programme for older children and will let you know closer to the conference. If you're wanting to bring your children to LCA2019, please let us know their age(s) so we can ensure we have enough spaces available.", max_length=256), + ), + ] diff --git a/pinaxcon/registrasion/models.py b/pinaxcon/registrasion/models.py index 91a05382..f17ec070 100644 --- a/pinaxcon/registrasion/models.py +++ b/pinaxcon/registrasion/models.py @@ -164,6 +164,17 @@ class AttendeeProfile(rego.AttendeeProfileBase): blank=True, ) + children = models.CharField( + max_length=256, + help_text="Linux.conf.au 2019 is a family friendly conference and provides " + "free child-care for pre-school children from 6 months up to 5 years. We " + "hope to also provide a programme for older children and will let you " + "know closer to the conference. If you're wanting to bring your children " + "to LCA2019, please let us know their age(s) so we can ensure we have " + "enough spaces available.", + blank=True + ) + linux_australia = models.BooleanField( verbose_name="Linux Australia membership", help_text="Select this field to register for free "