summaryrefslogtreecommitdiff
path: root/yaksh/migrations/0005_auto_20170410_1024.py
diff options
context:
space:
mode:
authoradityacp2017-04-26 14:35:10 +0530
committeradityacp2017-04-26 14:35:10 +0530
commitfdbc43f2216661c6166590b7f81cf598976167a0 (patch)
tree97bf44f4f06f830205d433188d7893922fc88136 /yaksh/migrations/0005_auto_20170410_1024.py
parent66add60208394d9aebdc642564ad905d4fc096c4 (diff)
parent7da22eb25f2bd5c0a6c5ba29d1febacb4f03f939 (diff)
downloadonline_test-fdbc43f2216661c6166590b7f81cf598976167a0.tar.gz
online_test-fdbc43f2216661c6166590b7f81cf598976167a0.tar.bz2
online_test-fdbc43f2216661c6166590b7f81cf598976167a0.zip
Merge https://github.com/fossee/online_test into email_verification
Diffstat (limited to 'yaksh/migrations/0005_auto_20170410_1024.py')
-rw-r--r--yaksh/migrations/0005_auto_20170410_1024.py26
1 files changed, 26 insertions, 0 deletions
diff --git a/yaksh/migrations/0005_auto_20170410_1024.py b/yaksh/migrations/0005_auto_20170410_1024.py
new file mode 100644
index 0000000..13b4cce
--- /dev/null
+++ b/yaksh/migrations/0005_auto_20170410_1024.py
@@ -0,0 +1,26 @@
+# -*- coding: utf-8 -*-
+# Generated by Django 1.9.5 on 2017-04-10 10:24
+from __future__ import unicode_literals
+
+from django.db import migrations, models
+import django.db.models.deletion
+
+
+class Migration(migrations.Migration):
+
+ dependencies = [
+ ('yaksh', '0004_auto_20170331_0632'),
+ ]
+
+ operations = [
+ migrations.AddField(
+ model_name='assignmentupload',
+ name='question_paper',
+ field=models.ForeignKey(blank=True, null=True, on_delete=django.db.models.deletion.CASCADE, to='yaksh.QuestionPaper'),
+ ),
+ migrations.AlterField(
+ model_name='hooktestcase',
+ name='hook_code',
+ field=models.TextField(default='def check_answer(user_answer):\n \'\'\' Evaluates user answer to return -\n success - Boolean, indicating if code was executed correctly\n mark_fraction - Float, indicating fraction of the\n weight to a test case\n error - String, error message if success is false\n\n In case of assignment upload there will be no user answer \'\'\'\n\n success = False\n err = "Incorrect Answer" # Please make this more specific\n mark_fraction = 0.0\n\n # write your code here\n\n return success, err, mark_fraction\n\n'),
+ ),
+ ]