Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
E
edx-platform
Overview
Overview
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
edx
edx-platform
Commits
3acb2f2c
Commit
3acb2f2c
authored
Oct 14, 2014
by
Will Daly
Committed by
Zia Fazal
Apr 06, 2015
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Update django-countries to 2.1.2, override country name for Taiwan
parent
e5514c92
Hide whitespace changes
Inline
Side-by-side
Showing
6 changed files
with
13 additions
and
8 deletions
+13
-8
common/djangoapps/student/models.py
+1
-1
lms/envs/common.py
+7
-2
lms/templates/register-shib.html
+1
-1
lms/templates/register.html
+2
-2
lms/templates/signup_modal.html
+1
-1
requirements/edx/base.txt
+1
-1
No files found.
common/djangoapps/student/models.py
View file @
3acb2f2c
...
...
@@ -31,7 +31,7 @@ from django.db.models import Count
from
django.dispatch
import
receiver
,
Signal
from
django.core.exceptions
import
ObjectDoesNotExist
from
django.utils.translation
import
ugettext_noop
from
django_countries
import
CountryField
from
django_countries
.fields
import
CountryField
from
config_models.models
import
ConfigurationModel
from
track
import
contexts
from
eventtracking
import
tracker
...
...
lms/envs/common.py
View file @
3acb2f2c
...
...
@@ -27,14 +27,13 @@ Longer TODO:
import
sys
import
os
import
imp
import
json
from
path
import
path
from
warnings
import
simplefilter
from
django.utils.translation
import
ugettext_lazy
as
_
from
.discussionsettings
import
*
from
xmodule.modulestore.modulestore_settings
import
update_module_store_settings
from
lms.lib.xblock.mixin
import
LmsBlockMixin
################################### FEATURES ###################################
...
...
@@ -1976,3 +1975,9 @@ NOTIFICATION_CHANNEL_PROVIDERS = {
NOTIFICATION_CHANNEL_PROVIDER_TYPE_MAPS
=
{
'*'
:
'durable'
,
# default global mapping
}
# Country code overrides
# Used by django-countries
COUNTRIES_OVERRIDE
=
{
"TW"
:
_
(
"Taiwan"
),
}
lms/templates/register-shib.html
View file @
3acb2f2c
...
...
@@ -7,7 +7,7 @@
<
%!
from
django
.
core
.
urlresolvers
import
reverse
%
>
<
%!
from
django
.
utils
import
html
%
>
<
%!
from
django_countries
.
countries
import
COUNTRIES
%
>
<
%!
from
django_countries
import
countries
%
>
<
%!
from
student
.
models
import
UserProfile
%
>
<
%!
from
datetime
import
date
%
>
<
%!
import
calendar
%
>
...
...
lms/templates/register.html
View file @
3acb2f2c
...
...
@@ -8,7 +8,7 @@
<
%!
from
django
.
core
.
urlresolvers
import
reverse
%
>
<
%!
from
django
.
utils
import
html
%
>
<
%!
from
django_countries
.
countries
import
COUNTRIES
%
>
<
%!
from
django_countries
import
countries
%
>
<
%!
from
django
.
utils
.
translation
import
ugettext
as
_
%
>
<
%!
from
student
.
models
import
UserProfile
%
>
<
%!
from
datetime
import
date
%
>
...
...
@@ -254,7 +254,7 @@
<label
for=
"country"
>
${_("Country")}
</label>
<select
id=
"country"
name=
"country"
${'
required
aria-required=
"true"
'
if
settings
.
REGISTRATION_EXTRA_FIELDS
['
country
']
==
'
required
'
else
''}
>
<option
value=
""
>
--
</option>
%for code, country_name in
COUNTRIES
:
%for code, country_name in
sorted(countries.countries, key=lambda (__, name): unicode(name))
:
<option
value=
"${code}"
>
${ unicode(country_name) }
</option>
%endfor
</select>
...
...
lms/templates/signup_modal.html
View file @
3acb2f2c
...
...
@@ -3,7 +3,7 @@
<
%
namespace
name=
'static'
file=
'static_content.html'
/>
<
%!
from
django
.
conf
import
settings
%
>
<
%!
from
django
.
core
.
urlresolvers
import
reverse
%
>
<
%!
from
django_countries
.
countries
import
COUNTRIES
%
>
<
%!
from
django_countries
import
countries
%
>
<
%!
from
student
.
models
import
UserProfile
%
>
<
%!
from
datetime
import
date
%
>
<
%!
import
calendar
%
>
...
...
requirements/edx/base.txt
View file @
3acb2f2c
...
...
@@ -16,7 +16,7 @@ defusedxml==0.4.1
distribute>=0.6.28, <0.7
django-babel-underscore==0.1.0
django-celery==3.0.17
django-countries==
1.5
django-countries==
2.1.2
django-extensions==1.2.5
django-filter==0.6.0
django-followit==0.0.3
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment