diff --git a/apps/book/migrations/0007_auto_20230203_1215.py b/apps/book/migrations/0007_auto_20230203_1215.py new file mode 100644 index 00000000..66df9d8c --- /dev/null +++ b/apps/book/migrations/0007_auto_20230203_1215.py @@ -0,0 +1,23 @@ +# Generated by Django 3.2.16 on 2023-02-03 06:30 + +from django.db import migrations, models + + +class Migration(migrations.Migration): + + dependencies = [ + ('book', '0006_auto_20230119_1225'), + ] + + operations = [ + migrations.AlterField( + model_name='book', + name='grade', + field=models.CharField(blank=True, choices=[('ecd', 'ECD'), ('grade_1', 'Grade 1'), ('grade_2', 'Grade 2'), ('grade_3', 'Grade 3')], max_length=40, null=True, verbose_name='Grade'), + ), + migrations.AlterField( + model_name='book', + name='language', + field=models.CharField(choices=[('english', 'English'), ('nepali', 'Nepali'), ('Maithali', 'Maithali'), ('Tharu', 'Tharu'), ('bilingual', 'Bilingual')], max_length=40, verbose_name='Language'), + ), + ] diff --git a/apps/book/models.py b/apps/book/models.py index 86331d08..8d944fdf 100644 --- a/apps/book/models.py +++ b/apps/book/models.py @@ -62,15 +62,15 @@ class LanguageType(models.TextChoices): NEPALI = 'nepali', _('Nepali') MAITHALI = 'Maithali', _('Maithali') THARU = 'Tharu', _('Tharu') - BILINGUAL = 'bilingual', _('BILINGUAL') + BILINGUAL = 'bilingual', _('Bilingual') class Grade(models.TextChoices): ECD = 'ecd', _('ECD') GRADE_1 = 'grade_1', _('Grade 1') GRADE_2 = 'grade_2', _('Grade 2') GRADE_3 = 'grade_3', _('Grade 3') - GRADE_4 = 'grade_4', _('Grade 4') - GRADE_5 = 'grade_5', _('Grade 5') + # GRADE_4 = 'grade_4', _('Grade 4') + # GRADE_5 = 'grade_5', _('Grade 5') # Basic Fields title = models.CharField(max_length=255, verbose_name=_('Title')) diff --git a/apps/order/migrations/0011_auto_20230203_1215.py b/apps/order/migrations/0011_auto_20230203_1215.py new file mode 100644 index 00000000..90034ceb --- /dev/null +++ b/apps/order/migrations/0011_auto_20230203_1215.py @@ -0,0 +1,23 @@ +# Generated by Django 3.2.16 on 2023-02-03 06:30 + +from django.db import migrations, models + + +class Migration(migrations.Migration): + + dependencies = [ + ('order', '0010_auto_20230119_1225'), + ] + + operations = [ + migrations.AlterField( + model_name='bookorder', + name='grade', + field=models.CharField(blank=True, choices=[('ecd', 'ECD'), ('grade_1', 'Grade 1'), ('grade_2', 'Grade 2'), ('grade_3', 'Grade 3')], max_length=40, null=True, verbose_name='Grade'), + ), + migrations.AlterField( + model_name='bookorder', + name='language', + field=models.CharField(blank=True, choices=[('english', 'English'), ('nepali', 'Nepali'), ('Maithali', 'Maithali'), ('Tharu', 'Tharu'), ('bilingual', 'Bilingual')], max_length=40, null=True, verbose_name='Language'), + ), + ] diff --git a/schema.graphql b/schema.graphql index 3f2cd5fe..bbf413f4 100644 --- a/schema.graphql +++ b/schema.graphql @@ -212,8 +212,6 @@ enum BookGradeEnum { GRADE_1 GRADE_2 GRADE_3 - GRADE_4 - GRADE_5 } enum BookLanguageEnum {