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.
|
registration progess.
|
||||||
'''
|
'''
|
||||||
|
|
||||||
|
objects = InheritanceManager()
|
||||||
|
|
||||||
@classmethod
|
@classmethod
|
||||||
def name_field(cls):
|
def name_field(cls):
|
||||||
''' This is used to pre-fill the attendee's name from the
|
''' This is used to pre-fill the attendee's name from the
|
||||||
|
|
|
@ -173,6 +173,7 @@ def handle_profile(request, prefix):
|
||||||
|
|
||||||
try:
|
try:
|
||||||
profile = attendee.attendeeprofilebase
|
profile = attendee.attendeeprofilebase
|
||||||
|
profile = rego.AttendeeProfileBase.objects.get_subclass(pk=profile.id)
|
||||||
except ObjectDoesNotExist:
|
except ObjectDoesNotExist:
|
||||||
profile = None
|
profile = None
|
||||||
|
|
||||||
|
@ -188,7 +189,7 @@ def handle_profile(request, prefix):
|
||||||
|
|
||||||
name_field = ProfileForm.Meta.model.name_field()
|
name_field = ProfileForm.Meta.model.name_field()
|
||||||
initial = {}
|
initial = {}
|
||||||
if name_field is not None:
|
if profile is None and name_field is not None:
|
||||||
initial[name_field] = speaker_name
|
initial[name_field] = speaker_name
|
||||||
|
|
||||||
form = ProfileForm(
|
form = ProfileForm(
|
||||||
|
|
Loading…
Reference in a new issue