From d653bf5ded11717b54dd807004e88367b80c5da8 Mon Sep 17 00:00:00 2001 From: Moeez Zahid Date: Tue, 27 Feb 2024 19:30:21 +0500 Subject: [PATCH] refactor: Increase size for mobile config singelton value (#34288) Co-authored-by: Abdul Moeez Zahid --- .../0005_alter_mobileconfig_value.py | 18 ++++++++++++++++++ lms/djangoapps/mobile_api/models.py | 2 +- 2 files changed, 19 insertions(+), 1 deletion(-) create mode 100644 lms/djangoapps/mobile_api/migrations/0005_alter_mobileconfig_value.py diff --git a/lms/djangoapps/mobile_api/migrations/0005_alter_mobileconfig_value.py b/lms/djangoapps/mobile_api/migrations/0005_alter_mobileconfig_value.py new file mode 100644 index 000000000000..21390296d630 --- /dev/null +++ b/lms/djangoapps/mobile_api/migrations/0005_alter_mobileconfig_value.py @@ -0,0 +1,18 @@ +# Generated by Django 4.2.10 on 2024-02-23 06:14 + +from django.db import migrations, models + + +class Migration(migrations.Migration): + + dependencies = [ + ('mobile_api', '0004_mobileconfig'), + ] + + operations = [ + migrations.AlterField( + model_name='mobileconfig', + name='value', + field=models.CharField(max_length=1000), + ), + ] diff --git a/lms/djangoapps/mobile_api/models.py b/lms/djangoapps/mobile_api/models.py index ba6f73721456..c80126996ace 100644 --- a/lms/djangoapps/mobile_api/models.py +++ b/lms/djangoapps/mobile_api/models.py @@ -110,7 +110,7 @@ class MobileConfig(TimeStampedModel): .. no_pii: """ name = models.CharField(max_length=255) - value = models.CharField(max_length=255) + value = models.CharField(max_length=1000) class Meta: app_label = "mobile_api"