Commit bbf6a517 by Matthew Mongeau

Cleanup.

parent 2d805c48
...@@ -235,11 +235,11 @@ def create_account(request, post_override=None): ...@@ -235,11 +235,11 @@ def create_account(request, post_override=None):
r.register(u) r.register(u)
up = UserProfile(user=u) up = UserProfile(user=u)
up.name=post_vars['name'] up.name = post_vars['name']
up.language=post_vars['language'] up.language = post_vars['language']
up.country=post_vars['country'] up.country = post_vars['country']
up.gender=post_vars['gender'] up.gender = post_vars['gender']
up.mailing_address=post_vars['mailing_address'] up.mailing_address = post_vars['mailing_address']
up.save() up.save()
# TODO (vshnayder): the LMS should probably allow signups without a particular course too # TODO (vshnayder): the LMS should probably allow signups without a particular course too
......
<%namespace name='static' file='static_content.html'/> <%namespace name='static' file='static_content.html'/>
<%! from django.core.urlresolvers import reverse %> <%! from django.core.urlresolvers import reverse %>
<%! from django_countries import countries %> <%! from django_countries.countries import COUNTRIES %>
<%! from student.models import UserProfile %> <%! from student.models import UserProfile %>
<section id="signup-modal" class="modal signup-modal"> <section id="signup-modal" class="modal signup-modal">
...@@ -29,8 +29,8 @@ ...@@ -29,8 +29,8 @@
</p> </p>
<label>Country of citizenship</label> <label>Country of citizenship</label>
<select name="country"> <select name="country">
%for code, country in countries.COUNTRIES: %for country_code, country_name in COUNTRIES:
<option value="${code}">${country}</option> <option value="${country_code}">${country_name}</option>
%endfor %endfor
</select> </select>
<label>Preferred Language</label> <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