diff --git a/kalite/main/migrations/0036_auto__del_field_attemptlog_response_count__add_field_attemptlog_assess.py b/kalite/main/migrations/0036_auto__del_field_attemptlog_response_count__add_field_attemptlog_assess.py index 14d69c26ad..fab8774912 100644 --- a/kalite/main/migrations/0036_auto__del_field_attemptlog_response_count__add_field_attemptlog_assess.py +++ b/kalite/main/migrations/0036_auto__del_field_attemptlog_response_count__add_field_attemptlog_assess.py @@ -8,8 +8,6 @@ class Migration(SchemaMigration): def forwards(self, orm): - # Deleting field 'AttemptLog.response_count' - db.delete_column(u'main_attemptlog', 'response_count') # Adding field 'AttemptLog.assessment_item_id' db.add_column(u'main_attemptlog', 'assessment_item_id', @@ -18,10 +16,6 @@ def forwards(self, orm): def backwards(self, orm): - # Adding field 'AttemptLog.response_count' - db.add_column(u'main_attemptlog', 'response_count', - self.gf('django.db.models.fields.IntegerField')(default=0), - keep_default=False) # Deleting field 'AttemptLog.assessment_item_id' db.delete_column(u'main_attemptlog', 'assessment_item_id') @@ -42,6 +36,7 @@ def backwards(self, orm): 'id': ('django.db.models.fields.CharField', [], {'max_length': '32', 'primary_key': 'True'}), 'language': ('django.db.models.fields.CharField', [], {'max_length': '8', 'blank': 'True'}), 'points': ('django.db.models.fields.IntegerField', [], {'default': '0'}), + 'response_count': ('django.db.models.fields.IntegerField', [], {'default': '0'}), 'response_log': ('django.db.models.fields.TextField', [], {'default': "'[]'"}), 'seed': ('django.db.models.fields.IntegerField', [], {'default': '0'}), 'signature': ('django.db.models.fields.CharField', [], {'max_length': '360', 'null': 'True', 'blank': 'True'}), diff --git a/kalite/main/models.py b/kalite/main/models.py index c5b421535d..6209bf59a0 100755 --- a/kalite/main/models.py +++ b/kalite/main/models.py @@ -494,7 +494,7 @@ class AttemptLog(DeferredCountSyncedModel): time_taken = models.IntegerField(blank=True, null=True) # time spent on exercise before initial response (in ms) version = models.CharField(blank=True, max_length=100) # the version of KA Lite at the time the answer was given response_log = models.TextField(default="[]") - response_count = models.IntegerField(default=0), + response_count = models.IntegerField(default=0) assessment_item_id = models.CharField(max_length=100, blank=True, default="") class Meta: