Add blank=True to rerun state display name

This commit is contained in:
Ben McMorran
2014-08-20 16:24:52 -04:00
parent 3b6b4668dd
commit 883aedb51b
2 changed files with 2 additions and 2 deletions

View File

@@ -10,7 +10,7 @@ class Migration(SchemaMigration):
def forwards(self, orm):
# Adding field 'CourseRerunState.display_name'
db.add_column('course_action_state_coursererunstate', 'display_name',
self.gf('django.db.models.fields.CharField')(default='', max_length=255),
self.gf('django.db.models.fields.CharField')(default='', max_length=255, blank=True),
keep_default=False)

View File

@@ -110,7 +110,7 @@ class CourseRerunState(CourseActionUIState):
source_course_key = CourseKeyField(max_length=255, db_index=True)
# Display name for destination course
display_name = models.CharField(max_length=255, default="")
display_name = models.CharField(max_length=255, default="", blank=True)
# MANAGERS
# Override the abstract class' manager with a Rerun-specific manager that inherits from the base class' manager.