This commit is contained in:
Christopher Neugebauer 2016-04-01 12:34:06 +01:00
parent 12e4d0a3cb
commit 3a6b4125e9
2 changed files with 4 additions and 1 deletions

View file

@ -46,6 +46,8 @@ class AttendeeProfileBase(models.Model):
registration progess.
'''
objects = InheritanceManager()
@classmethod
def name_field(cls):
''' This is used to pre-fill the attendee's name from the

View file

@ -173,6 +173,7 @@ def handle_profile(request, prefix):
try:
profile = attendee.attendeeprofilebase
profile = rego.AttendeeProfileBase.objects.get_subclass(pk=profile.id)
except ObjectDoesNotExist:
profile = None
@ -188,7 +189,7 @@ def handle_profile(request, prefix):
name_field = ProfileForm.Meta.model.name_field()
initial = {}
if name_field is not None:
if profile is None and name_field is not None:
initial[name_field] = speaker_name
form = ProfileForm(