diff options
author | Palaparthy Adityachandra | 2020-09-09 08:30:33 +0530 |
---|---|---|
committer | GitHub | 2020-09-09 08:30:33 +0530 |
commit | 23bf46ac2e262ceb373388196962a0bec048c6cb (patch) | |
tree | 15a4091ee81d77524ad4a046762aa6c0ba6522ce /yaksh/migrations | |
parent | e4bfcb650e76579f0fc5daee264c7cb3da90eced (diff) | |
parent | 6d5f4dd373cde302fe9575713a3a08a00fc83199 (diff) | |
download | online_test-23bf46ac2e262ceb373388196962a0bec048c6cb.tar.gz online_test-23bf46ac2e262ceb373388196962a0bec048c6cb.tar.bz2 online_test-23bf46ac2e262ceb373388196962a0bec048c6cb.zip |
Merge pull request #757 from adityacp/release_0_23_0v0.23.0
Release 0.23.0 changes
Diffstat (limited to 'yaksh/migrations')
-rw-r--r-- | yaksh/migrations/0023_release_0_23_0.py | 46 |
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')}, + }, + ), + ] |