Remove the done index.

This commit is contained in:
Feanil Patel
2018-05-29 11:19:28 -04:00
parent 658abab674
commit a1cd26b983
2 changed files with 21 additions and 1 deletions

View File

@@ -0,0 +1,20 @@
# -*- coding: utf-8 -*-
# Generated by Django 1.11.13 on 2018-05-29 15:18
from __future__ import unicode_literals
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [
('courseware', '0006_remove_module_id_index'),
]
operations = [
migrations.AlterField(
model_name='studentmodule',
name='done',
field=models.CharField(choices=[(b'na', b'NOT_APPLICABLE'), (b'f', b'FINISHED'), (b'i', b'INCOMPLETE')], default=b'na', max_length=8),
),
]

View File

@@ -111,7 +111,7 @@ class StudentModule(models.Model):
('f', 'FINISHED'),
('i', 'INCOMPLETE'),
)
done = models.CharField(max_length=8, choices=DONE_TYPES, default='na', db_index=True)
done = models.CharField(max_length=8, choices=DONE_TYPES, default='na')
created = models.DateTimeField(auto_now_add=True, db_index=True)
modified = models.DateTimeField(auto_now=True, db_index=True)