This commit is contained in:
Matthew Mongeau
2012-07-12 15:43:08 -04:00
parent 67221b0725
commit 456054a261
2 changed files with 8 additions and 8 deletions

View File

@@ -235,11 +235,11 @@ def create_account(request, post_override=None):
r.register(u)
up = UserProfile(user=u)
up.name=post_vars['name']
up.language=post_vars['language']
up.country=post_vars['country']
up.gender=post_vars['gender']
up.mailing_address=post_vars['mailing_address']
up.name = post_vars['name']
up.language = post_vars['language']
up.country = post_vars['country']
up.gender = post_vars['gender']
up.mailing_address = post_vars['mailing_address']
up.save()
# TODO (vshnayder): the LMS should probably allow signups without a particular course too

View File

@@ -1,6 +1,6 @@
<%namespace name='static' file='static_content.html'/>
<%! from django.core.urlresolvers import reverse %>
<%! from django_countries import countries %>
<%! from django_countries.countries import COUNTRIES %>
<%! from student.models import UserProfile %>
<section id="signup-modal" class="modal signup-modal">
@@ -29,8 +29,8 @@
</p>
<label>Country of citizenship</label>
<select name="country">
%for code, country in countries.COUNTRIES:
<option value="${code}">${country}</option>
%for country_code, country_name in COUNTRIES:
<option value="${country_code}">${country_name}</option>
%endfor
</select>
<label>Preferred Language</label>