You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

33 lines
1.7 KiB

  1. # Generated by Django 3.1.5 on 2021-02-01 06:03
  2. from django.db import migrations, models
  3. import django.db.models.deletion
  4. class Migration(migrations.Migration):
  5. dependencies = [
  6. ('api', '0004_merge_20210114_1117'),
  7. ]
  8. operations = [
  9. migrations.AlterField(
  10. model_name='label',
  11. name='suffix_key',
  12. field=models.CharField(blank=True, choices=[('0', '0'), ('1', '1'), ('2', '2'), ('3', '3'), ('4', '4'), ('5', '5'), ('6', '6'), ('7', '7'), ('8', '8'), ('9', '9'), ('a', 'a'), ('b', 'b'), ('c', 'c'), ('d', 'd'), ('e', 'e'), ('f', 'f'), ('g', 'g'), ('h', 'h'), ('i', 'i'), ('j', 'j'), ('k', 'k'), ('l', 'l'), ('m', 'm'), ('n', 'n'), ('o', 'o'), ('p', 'p'), ('q', 'q'), ('r', 'r'), ('s', 's'), ('t', 't'), ('u', 'u'), ('v', 'v'), ('w', 'w'), ('x', 'x'), ('y', 'y'), ('z', 'z')], max_length=1, null=True),
  13. ),
  14. migrations.CreateModel(
  15. name='AutoLabelingConfig',
  16. fields=[
  17. ('id', models.AutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')),
  18. ('model_name', models.CharField(max_length=100)),
  19. ('model_attrs', models.JSONField(default=dict)),
  20. ('template', models.TextField(default='')),
  21. ('label_mapping', models.JSONField(default=dict)),
  22. ('default', models.BooleanField(default=False)),
  23. ('created_at', models.DateTimeField(auto_now_add=True)),
  24. ('updated_at', models.DateTimeField(auto_now=True)),
  25. ('project', models.ForeignKey(on_delete=django.db.models.deletion.CASCADE, related_name='auto_labeling_config', to='api.project')),
  26. ],
  27. ),
  28. ]