parent
319a1070af
commit
cc61b14d15
2 changed files with 31 additions and 1 deletions
@ -0,0 +1,29 @@ |
|||||||
|
# Generated by Django 2.0.1 on 2018-01-30 08:10 |
||||||
|
|
||||||
|
from django.db import migrations |
||||||
|
import django.db.models.deletion |
||||||
|
import mptt.fields |
||||||
|
|
||||||
|
|
||||||
|
class Migration(migrations.Migration): |
||||||
|
|
||||||
|
dependencies = [ |
||||||
|
('course', '0016_auto_20180129_1756'), |
||||||
|
] |
||||||
|
|
||||||
|
operations = [ |
||||||
|
migrations.RemoveField( |
||||||
|
model_name='comment', |
||||||
|
name='parent', |
||||||
|
), |
||||||
|
migrations.AddField( |
||||||
|
model_name='coursecomment', |
||||||
|
name='parent', |
||||||
|
field=mptt.fields.TreeForeignKey(blank=True, null=True, on_delete=django.db.models.deletion.PROTECT, related_name='children', to='course.CourseComment'), |
||||||
|
), |
||||||
|
migrations.AddField( |
||||||
|
model_name='lessoncomment', |
||||||
|
name='parent', |
||||||
|
field=mptt.fields.TreeForeignKey(blank=True, null=True, on_delete=django.db.models.deletion.PROTECT, related_name='children', to='course.LessonComment'), |
||||||
|
), |
||||||
|
] |
||||||
Loading…
Reference in new issue