Commit 456054a2 by Matthew Mongeau

Cleanup.

parent 67221b07
......@@ -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
......
<%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>
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment