Bugfix
This commit is contained in:
parent
12e4d0a3cb
commit
3a6b4125e9
2 changed files with 4 additions and 1 deletions
|
@ -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
|
||||
|
|
|
@ -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(
|
||||
|
|
Loading…
Reference in a new issue