Merge pull request #22508 from edx/BOM-1082

Updated the django-countries to support Django 2.2
This commit is contained in:
Aarif
2019-12-19 12:15:04 +05:00
committed by GitHub
7 changed files with 8 additions and 8 deletions

View File

@@ -90,7 +90,7 @@ class UserProfilePropertiesTest(CacheIsolationTestCase):
def test_invalidate_cache_user_profile_country_updated(self):
country = 'us'
country = 'US'
self.profile.country = country
self.profile.save()

View File

@@ -71,6 +71,7 @@ SORTED_COUNTRIES = [
(u"GQ", u"Equatorial Guinea"),
(u"ER", u"Eritrea"),
(u"EE", u"Estonia"),
(u"SZ", u"Eswatini"),
(u"ET", u"Ethiopia"),
(u"FK", u"Falkland Islands [Malvinas]"),
(u"FO", u"Faroe Islands"),
@@ -131,7 +132,6 @@ SORTED_COUNTRIES = [
(u"LT", u"Lithuania"),
(u"LU", u"Luxembourg"),
(u"MO", u"Macao"),
(u"MK", u"Macedonia"),
(u"MG", u"Madagascar"),
(u"MW", u"Malawi"),
(u"MY", u"Malaysia"),
@@ -165,6 +165,7 @@ SORTED_COUNTRIES = [
(u"NU", u"Niue"),
(u"NF", u"Norfolk Island"),
(u"KP", u"North Korea"),
(u"MK", u"North Macedonia"),
(u"MP", u"Northern Mariana Islands"),
(u"NO", u"Norway"),
(u"OM", u"Oman"),
@@ -215,7 +216,6 @@ SORTED_COUNTRIES = [
(u"SD", u"Sudan"),
(u"SR", u"Suriname"),
(u"SJ", u"Svalbard and Jan Mayen"),
(u"SZ", u"Swaziland"),
(u"SE", u"Sweden"),
(u"CH", u"Switzerland"),
(u"SY", u"Syria"),

View File

@@ -302,7 +302,7 @@ class RegistrationViewTest(ThirdPartyAuthTestMixin, UserAPITestCase):
YEAR_OF_BIRTH = "1998"
ADDRESS = "123 Fake Street"
CITY = "Springfield"
COUNTRY = "us"
COUNTRY = "US"
GOALS = "Learn all the things!"
PROFESSION_OPTIONS = [
{

View File

@@ -40,7 +40,7 @@ Django<1.12 # Web application framework
django-babel-underscore # underscore template extractor for django-babel (internationalization utilities)
django-config-models>=1.0.0 # Configuration models for Django allowing config management with auditing
django-cors-headers==2.5.3 # Used to allow to configure CORS headers for cross-domain requests
django-countries==4.6.1 # Country data for Django forms and model fields
django-countries # Country data for Django forms and model fields
django-crum # Middleware that stores the current request and user in thread local storage
django-fernet-fields # via edx-enterprise (should be added to its setup.py)
django-filter==1.0.4 # Allows users to filter Django querysets dynamically

View File

@@ -59,7 +59,7 @@ git+https://github.com/edx/django-celery.git@756cb57aad765cb2b0d37372c1855b8f5f3
django-classy-tags==0.9.0 # via django-sekizai
django-config-models==1.0.3
django-cors-headers==2.5.3
django-countries==4.6.1
django-countries==5.5
django-crum==0.7.5
django-fernet-fields==0.6
django-filter==1.0.4

View File

@@ -79,7 +79,7 @@ git+https://github.com/edx/django-celery.git@756cb57aad765cb2b0d37372c1855b8f5f3
django-classy-tags==0.9.0
django-config-models==1.0.3
django-cors-headers==2.5.3
django-countries==4.6.1
django-countries==5.5
django-crum==0.7.5
django-debug-toolbar==1.11
django-fernet-fields==0.6

View File

@@ -78,7 +78,7 @@ git+https://github.com/edx/django-celery.git@756cb57aad765cb2b0d37372c1855b8f5f3
django-classy-tags==0.9.0
django-config-models==1.0.3
django-cors-headers==2.5.3
django-countries==4.6.1
django-countries==5.5
django-crum==0.7.5
django-fernet-fields==0.6
django-filter==1.0.4