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
b7b4e0b0
Commit
b7b4e0b0
authored
Apr 27, 2016
by
Waheed Ahmed
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Added Kosovo in django country list.
ECOM-4292
parent
a6da7159
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
11 additions
and
0 deletions
+11
-0
lms/envs/common.py
+1
-0
openedx/core/djangoapps/user_api/tests/test_constants.py
+1
-0
openedx/core/djangoapps/user_api/tests/test_views.py
+9
-0
No files found.
lms/envs/common.py
View file @
b7b4e0b0
...
...
@@ -2584,6 +2584,7 @@ INVOICE_PAYMENT_INSTRUCTIONS = "This is where you can\nput directions on how peo
COUNTRIES_OVERRIDE
=
{
# Taiwan is specifically not translated to avoid it being translated as "Taiwan (Province of China)"
"TW"
:
"Taiwan"
,
'XK'
:
_
(
'Kosovo'
),
}
# which access.py permission name to check in order to determine if a course is visible in
...
...
openedx/core/djangoapps/user_api/tests/test_constants.py
View file @
b7b4e0b0
...
...
@@ -118,6 +118,7 @@ SORTED_COUNTRIES = [
(
u"KZ"
,
u"Kazakhstan"
),
(
u"KE"
,
u"Kenya"
),
(
u"KI"
,
u"Kiribati"
),
(
u"XK"
,
u"Kosovo"
),
(
u"KW"
,
u"Kuwait"
),
(
u"KG"
,
u"Kyrgyzstan"
),
(
u"LA"
,
u"Laos"
),
...
...
openedx/core/djangoapps/user_api/tests/test_views.py
View file @
b7b4e0b0
...
...
@@ -1713,6 +1713,15 @@ class RegistrationViewTest(ThirdPartyAuthTestMixin, UserAPITestCase):
)
)
def
test_country_overrides
(
self
):
"""Test that overridden countries are available in country list."""
# Retrieve the registration form description
with
override_settings
(
REGISTRATION_EXTRA_FIELDS
=
{
"country"
:
"required"
}):
response
=
self
.
client
.
get
(
self
.
url
)
self
.
assertHttpOK
(
response
)
self
.
assertContains
(
response
,
'Kosovo'
)
@httpretty.activate
@ddt.ddt
...
...
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