diff --git a/dojo/db_migrations/0001_initial.py b/dojo/db_migrations/0001_initial.py index c531e338031..b3da1f7ab3b 100644 --- a/dojo/db_migrations/0001_initial.py +++ b/dojo/db_migrations/0001_initial.py @@ -722,7 +722,7 @@ class Migration(migrations.Migration): ('enable_product_grade', models.BooleanField(default=False, help_text='Displays a grade letter next to a product to show the overall health.', verbose_name='Enable Product Grading')), ('product_grade', models.CharField(blank=True, max_length=800)), ('product_grade_a', models.IntegerField(default=90, help_text=b"Percentage score for an 'A' >=", verbose_name='Grade A')), - ('product_grade_', models.IntegerField(default=80, help_text=b"Percentage score for a '' >=", verbose_name='Grade ')), + ('product_grade_b', models.IntegerField(default=80, help_text=b"Percentage score for a '' >=", verbose_name='Grade ')), ('product_grade_c', models.IntegerField(default=70, help_text=b"Percentage score for a 'C' >=", verbose_name='Grade C')), ('product_grade_d', models.IntegerField(default=60, help_text=b"Percentage score for a 'D' >=", verbose_name='Grade D')), ('product_grade_f', models.IntegerField(default=59, help_text=b"Percentage score for an 'F' <=", verbose_name='Grade F')), diff --git a/dojo/db_migrations/0006_django2_upgrade.py b/dojo/db_migrations/0006_django2_upgrade.py index e3afb262960..a683bf90473 100644 --- a/dojo/db_migrations/0006_django2_upgrade.py +++ b/dojo/db_migrations/0006_django2_upgrade.py @@ -13,15 +13,6 @@ class Migration(migrations.Migration): ] operations = [ - migrations.RemoveField( - model_name='system_settings', - name='product_grade_', - ), - migrations.AddField( - model_name='system_settings', - name='product_grade_b', - field=models.IntegerField(default=80, help_text="Percentage score for a 'B' >=", verbose_name='Grade B'), - ), migrations.AlterField( model_name='child_rule', name='match_field', @@ -167,6 +158,11 @@ class Migration(migrations.Migration): name='product_grade_a', field=models.IntegerField(default=90, help_text="Percentage score for an 'A' >=", verbose_name='Grade A'), ), + migrations.AlterField( + model_name='system_settings', + name='product_grade_b', + field=models.IntegerField(default=80, help_text="Percentage score for a 'B' >=", verbose_name='Grade B'), + ), migrations.AlterField( model_name='system_settings', name='product_grade_c',