From 48dbebd28ffb46f9ceab1ab20ce818a4532cf603 Mon Sep 17 00:00:00 2001 From: Awais Qureshi Date: Fri, 10 Jan 2020 14:01:56 +0500 Subject: [PATCH] Bom-1146 In mobile-api model PLATFORM_CLASSES tuple of list and make migrations generate new migration due to different order. --- lms/djangoapps/mobile_api/models.py | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/lms/djangoapps/mobile_api/models.py b/lms/djangoapps/mobile_api/models.py index 1313d91723..3775cd58bb 100644 --- a/lms/djangoapps/mobile_api/models.py +++ b/lms/djangoapps/mobile_api/models.py @@ -43,10 +43,10 @@ class AppVersionConfig(models.Model): .. no_pii: """ - PLATFORM_CHOICES = tuple([ - (platform, platform) - for platform in PLATFORM_CLASSES.keys() - ]) + PLATFORM_CHOICES = tuple( + [(platform, platform) for platform in sorted(PLATFORM_CLASSES.keys())] + ) + platform = models.CharField(max_length=50, choices=PLATFORM_CHOICES, blank=False) version = models.CharField( max_length=50,