1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
|
# Generated by Django 3.0.3 on 2020-05-20 07:28
import datetime
from django.conf import settings
from django.db import migrations, models
import django.db.models.deletion
from django.utils.timezone import utc
import uuid
import yaksh.models
class Migration(migrations.Migration):
dependencies = [
migrations.swappable_dependency(settings.AUTH_USER_MODEL),
('yaksh', '0018_auto_20200408_1206'),
]
operations = [
migrations.CreateModel(
name='ForumBase',
fields=[
('id', models.AutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')),
('uid', models.UUIDField(default=uuid.uuid4, editable=False, unique=True)),
('description', models.TextField()),
('created_at', models.DateTimeField(auto_now_add=True)),
('modified_at', models.DateTimeField(auto_now=True)),
('image', models.ImageField(blank=True, null=True, upload_to=yaksh.models.get_image_dir, validators=[yaksh.models.validate_image])),
('active', models.BooleanField(default=True)),
('creator', models.ForeignKey(on_delete=django.db.models.deletion.CASCADE, to=settings.AUTH_USER_MODEL)),
],
),
migrations.AddField(
model_name='question',
name='topic',
field=models.CharField(blank=True, max_length=50, null=True),
),
migrations.AlterField(
model_name='course',
name='end_enroll_time',
field=models.DateTimeField(default=datetime.datetime(2199, 1, 1, 0, 0, tzinfo=utc), null=True, verbose_name='End Date and Time for enrollment of course'),
),
migrations.AlterField(
model_name='question',
name='language',
field=models.CharField(choices=[('python', 'Python'), ('bash', 'Bash'), ('c', 'C Language'), ('cpp', 'C++ Language'), ('java', 'Java Language'), ('scilab', 'Scilab'), ('r', 'R'), ('other', 'Other')], max_length=24),
),
migrations.AlterField(
model_name='quiz',
name='end_date_time',
field=models.DateTimeField(default=datetime.datetime(2199, 1, 1, 0, 0, tzinfo=utc), null=True, verbose_name='End Date and Time of the quiz'),
),
migrations.CreateModel(
name='Post',
fields=[
('forumbase_ptr', models.OneToOneField(auto_created=True, on_delete=django.db.models.deletion.CASCADE, parent_link=True, primary_key=True, serialize=False, to='yaksh.ForumBase')),
('title', models.CharField(max_length=200)),
('course', models.ForeignKey(on_delete=django.db.models.deletion.CASCADE, related_name='post', to='yaksh.Course')),
],
bases=('yaksh.forumbase',),
),
migrations.CreateModel(
name='Comment',
fields=[
('forumbase_ptr', models.OneToOneField(auto_created=True, on_delete=django.db.models.deletion.CASCADE, parent_link=True, primary_key=True, serialize=False, to='yaksh.ForumBase')),
('post_field', models.ForeignKey(on_delete=django.db.models.deletion.CASCADE, related_name='comment', to='yaksh.Post')),
],
bases=('yaksh.forumbase',),
),
]
|