summaryrefslogtreecommitdiff
path: root/yaksh
diff options
context:
space:
mode:
authoradityacp2020-09-09 08:15:07 +0530
committeradityacp2020-09-09 08:18:00 +0530
commit6d5f4dd373cde302fe9575713a3a08a00fc83199 (patch)
tree15a4091ee81d77524ad4a046762aa6c0ba6522ce /yaksh
parente4bfcb650e76579f0fc5daee264c7cb3da90eced (diff)
downloadonline_test-6d5f4dd373cde302fe9575713a3a08a00fc83199.tar.gz
online_test-6d5f4dd373cde302fe9575713a3a08a00fc83199.tar.bz2
online_test-6d5f4dd373cde302fe9575713a3a08a00fc83199.zip
Release changes
Diffstat (limited to 'yaksh')
-rw-r--r--yaksh/migrations/0023_release_0_23_0.py46
1 files changed, 46 insertions, 0 deletions
diff --git a/yaksh/migrations/0023_release_0_23_0.py b/yaksh/migrations/0023_release_0_23_0.py
new file mode 100644
index 0000000..0666fb8
--- /dev/null
+++ b/yaksh/migrations/0023_release_0_23_0.py
@@ -0,0 +1,46 @@
+# Generated by Django 3.0.7 on 2020-09-09 02:25
+
+from django.conf import settings
+from django.db import migrations, models
+import django.db.models.deletion
+import django.utils.timezone
+
+
+class Migration(migrations.Migration):
+
+ dependencies = [
+ migrations.swappable_dependency(settings.AUTH_USER_MODEL),
+ ('yaksh', '0022_release_0_22_1'),
+ ]
+
+ operations = [
+ migrations.AddField(
+ model_name='answerpaper',
+ name='extra_time',
+ field=models.FloatField(default=0.0, verbose_name='Additional time in mins'),
+ ),
+ migrations.AddField(
+ model_name='answerpaper',
+ name='is_special',
+ field=models.BooleanField(default=False),
+ ),
+ migrations.CreateModel(
+ name='MicroManager',
+ fields=[
+ ('id', models.AutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')),
+ ('special_attempt', models.BooleanField(default=False)),
+ ('attempts_permitted', models.IntegerField(default=0)),
+ ('permitted_time', models.DateTimeField(default=django.utils.timezone.now)),
+ ('attempts_utilised', models.IntegerField(default=0)),
+ ('wait_time', models.IntegerField(default=0, verbose_name='Days to wait before special attempt')),
+ ('attempt_valid_for', models.IntegerField(default=90, verbose_name='Validity days')),
+ ('course', models.ForeignKey(on_delete=django.db.models.deletion.CASCADE, to='yaksh.Course')),
+ ('manager', models.ForeignKey(null=True, on_delete=django.db.models.deletion.CASCADE, related_name='micromanaging', to=settings.AUTH_USER_MODEL)),
+ ('quiz', models.ForeignKey(null=True, on_delete=django.db.models.deletion.CASCADE, to='yaksh.Quiz')),
+ ('student', models.ForeignKey(on_delete=django.db.models.deletion.CASCADE, related_name='micromanaged', to=settings.AUTH_USER_MODEL)),
+ ],
+ options={
+ 'unique_together': {('student', 'course', 'quiz')},
+ },
+ ),
+ ]