From 8018dbed27d2d897ceb16a3d3c0cb1ebad9658e7 Mon Sep 17 00:00:00 2001 From: Farhaan Bukhsh Date: Tue, 8 Sep 2020 20:40:19 +0530 Subject: [PATCH] Document the COUNTRIES_FIRST setting in common.py This change introduces a way to help filling form, with the constant we can specify the order of the countries that should come first. This will reduce the chance of commiting a mistake while filling form. Signed-off-by: Farhaan Bukhsh --- lms/envs/common.py | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/lms/envs/common.py b/lms/envs/common.py index aef8036fb0..ab72a372d6 100644 --- a/lms/envs/common.py +++ b/lms/envs/common.py @@ -3938,3 +3938,11 @@ SUPPORT_HOW_TO_UNENROLL_LINK = '' ######################## Setting for content libraries ######################## MAX_BLOCKS_PER_CONTENT_LIBRARY = 1000 + +######################## Setting for django-countries ######################## +# django-countries provides an option to make the desired countries come up in +# selection forms, if left empty countries will come up in ascending order as before. +# This accepts a list of ISO3166-1 two letter country code, For example, +# COUNTRIES_FIRST = ['SA', 'BH', 'QA'] will display these countries on top of the list +# https://github.com/SmileyChris/django-countries#show-certain-countries-first +COUNTRIES_FIRST = []