Adjust attendee profile

This commit is contained in:
Joel Addison 2021-11-27 16:36:16 +10:00
parent ce367b5221
commit 31c265a6b8
3 changed files with 3 additions and 4 deletions

View file

@ -24,9 +24,8 @@ class ProfileForm(forms.ModelForm):
model = models.AttendeeProfile
exclude = [
'attendee',
'of_legal_age',
'dietary_restrictions',
'children',
'lca_chat',
'future_conference',
]
widgets = {

View file

@ -151,7 +151,7 @@ class AttendeeProfile(rego.AttendeeProfileBase):
help_text="Being under 18 will not stop you from attending the "
"conference. We need to know whether you are over 18 to "
"allow us to cater for you at venues that serve alcohol.",
blank=True, # LCA2022 - not needed.
blank=True,
default=False,
)
dietary_restrictions = models.CharField(

View file

@ -45,10 +45,10 @@
<dt class="col-sm-3">PDNS Tickets</dt>
<dd class="col-sm-9">{{ pdns_count }}</dd>
{% endcomment %}
<dt class="col-sm-3">Over 18 years</dt>
<dd class="col-sm-9">{% if user.attendee.attendeeprofilebase.attendeeprofile.of_legal_age %}Yes{% else %}<strong class="red">NO</strong>{% endif %}</dd>
{% endcomment %}
<dt class="col-sm-3">Username</dt>
<dd class="col-sm-9">{{ user.username }}</dd>