Changeset - 3a6b4125e974
[Not reviewed]
0 2 0
Christopher Neugebauer - 8 years ago 2016-04-01 11:34:06
chrisjrn@gmail.com
Bugfix
2 files changed with 4 insertions and 1 deletions:
0 comments (0 inline, 0 general)
registrasion/models.py
Show inline comments
...
 
@@ -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
registrasion/views.py
Show inline comments
...
 
@@ -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(
0 comments (0 inline, 0 general)