0002_auto_20200721_1734.py 1.1 KB

123456789101112131415161718192021222324252627282930
  1. # Generated by Django 3.0.8 on 2020-07-21 09:34
  2. from django.db import migrations, models
  3. import django.db.models.deletion
  4. import mptt.fields
  5. class Migration(migrations.Migration):
  6. dependencies = [
  7. ('workTtree', '0001_initial'),
  8. ]
  9. operations = [
  10. migrations.AddField(
  11. model_name='schooldept',
  12. name='parent',
  13. field=mptt.fields.TreeForeignKey(blank=True, null=True, on_delete=django.db.models.deletion.CASCADE, related_name='children_p', to='workTtree.SchoolDept'),
  14. ),
  15. migrations.AlterField(
  16. model_name='schooldept',
  17. name='create_by',
  18. field=models.ForeignKey(blank=True, null=True, on_delete=django.db.models.deletion.CASCADE, related_name='children_c', to='workTtree.SchoolDept'),
  19. ),
  20. migrations.AlterField(
  21. model_name='schooldept',
  22. name='update_by',
  23. field=models.ForeignKey(blank=True, null=True, on_delete=django.db.models.deletion.CASCADE, related_name='children_u', to='workTtree.SchoolDept', verbose_name='最后修改人'),
  24. ),
  25. ]