summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorankitjavalkar2020-10-07 17:08:35 +0530
committerankitjavalkar2020-10-07 17:08:35 +0530
commitb9a71cb895f53570b130aea00353fb24336df3a2 (patch)
tree48b6e66b1d970d4510c4d76e9fbbbe0e5f2392a0
parent0352fb8753745c1ba33bb51602bee4b756c6c206 (diff)
downloadonline_test-b9a71cb895f53570b130aea00353fb24336df3a2.tar.gz
online_test-b9a71cb895f53570b130aea00353fb24336df3a2.tar.bz2
online_test-b9a71cb895f53570b130aea00353fb24336df3a2.zip
Release related changes for v0.26.0
-rw-r--r--online_test/__init__.py2
-rw-r--r--yaksh/migrations/0025_release_0_26.py70
2 files changed, 71 insertions, 1 deletions
diff --git a/online_test/__init__.py b/online_test/__init__.py
index b9e8f77..e48d243 100644
--- a/online_test/__init__.py
+++ b/online_test/__init__.py
@@ -4,4 +4,4 @@ from online_test.celery_settings import app as celery_app
__all__ = ('celery_app',)
-__version__ = '0.25.0'
+__version__ = '0.26.0'
diff --git a/yaksh/migrations/0025_release_0_26.py b/yaksh/migrations/0025_release_0_26.py
new file mode 100644
index 0000000..e619c93
--- /dev/null
+++ b/yaksh/migrations/0025_release_0_26.py
@@ -0,0 +1,70 @@
+# Generated by Django 3.0.7 on 2020-10-07 11:32
+
+from django.conf import settings
+from django.db import migrations, models
+import django.db.models.deletion
+import yaksh.models
+
+
+class Migration(migrations.Migration):
+
+ dependencies = [
+ ('contenttypes', '0002_remove_content_type_name'),
+ migrations.swappable_dependency(settings.AUTH_USER_MODEL),
+ ('yaksh', '0024_release_0_24_0'),
+ ]
+
+ operations = [
+ migrations.CreateModel(
+ name='Topic',
+ fields=[
+ ('id', models.AutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')),
+ ('name', models.CharField(max_length=255)),
+ ('description', models.TextField(blank=True, null=True)),
+ ],
+ ),
+ migrations.AddField(
+ model_name='lesson',
+ name='video_path',
+ field=models.CharField(blank=True, default=None, help_text='Youtube id, vimeo id, others', max_length=255, null=True),
+ ),
+ migrations.AlterField(
+ model_name='learningmodule',
+ name='check_prerequisite',
+ field=models.BooleanField(default=False),
+ ),
+ migrations.AlterField(
+ model_name='learningunit',
+ name='check_prerequisite',
+ field=models.BooleanField(default=False),
+ ),
+ migrations.AlterField(
+ model_name='lesson',
+ name='video_file',
+ field=models.FileField(blank=True, default=None, help_text='Please upload video files in mp4, ogv, webm format', max_length=255, null=True, upload_to=yaksh.models.get_file_dir),
+ ),
+ migrations.CreateModel(
+ name='TableOfContents',
+ fields=[
+ ('id', models.AutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')),
+ ('time', models.CharField(default=0, max_length=100)),
+ ('content', models.IntegerField(choices=[(1, 'Topic'), (2, 'Graded Quiz'), (3, 'Exercise'), (4, 'Poll')])),
+ ('object_id', models.PositiveIntegerField()),
+ ('content_type', models.ForeignKey(on_delete=django.db.models.deletion.CASCADE, to='contenttypes.ContentType')),
+ ('course', models.ForeignKey(on_delete=django.db.models.deletion.CASCADE, related_name='course', to='yaksh.Course')),
+ ('lesson', models.ForeignKey(on_delete=django.db.models.deletion.CASCADE, related_name='contents', to='yaksh.Lesson')),
+ ],
+ options={
+ 'verbose_name_plural': 'Table Of Contents',
+ },
+ ),
+ migrations.CreateModel(
+ name='LessonQuizAnswer',
+ fields=[
+ ('id', models.AutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')),
+ ('answer', models.ForeignKey(on_delete=django.db.models.deletion.CASCADE, to='yaksh.Answer')),
+ ('student', models.ForeignKey(on_delete=django.db.models.deletion.CASCADE, to=settings.AUTH_USER_MODEL)),
+ ('toc', models.ForeignKey(on_delete=django.db.models.deletion.CASCADE, to='yaksh.TableOfContents')),
+ ],
+ ),
+ ]