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.

82 lines
2.6 KiB

2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
  1. # Generated by Django 3.1.5 on 2021-02-01 06:03
  2. import django.db.models.deletion
  3. from django.db import migrations, models
  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(
  13. blank=True,
  14. choices=[
  15. ("0", "0"),
  16. ("1", "1"),
  17. ("2", "2"),
  18. ("3", "3"),
  19. ("4", "4"),
  20. ("5", "5"),
  21. ("6", "6"),
  22. ("7", "7"),
  23. ("8", "8"),
  24. ("9", "9"),
  25. ("a", "a"),
  26. ("b", "b"),
  27. ("c", "c"),
  28. ("d", "d"),
  29. ("e", "e"),
  30. ("f", "f"),
  31. ("g", "g"),
  32. ("h", "h"),
  33. ("i", "i"),
  34. ("j", "j"),
  35. ("k", "k"),
  36. ("l", "l"),
  37. ("m", "m"),
  38. ("n", "n"),
  39. ("o", "o"),
  40. ("p", "p"),
  41. ("q", "q"),
  42. ("r", "r"),
  43. ("s", "s"),
  44. ("t", "t"),
  45. ("u", "u"),
  46. ("v", "v"),
  47. ("w", "w"),
  48. ("x", "x"),
  49. ("y", "y"),
  50. ("z", "z"),
  51. ],
  52. max_length=1,
  53. null=True,
  54. ),
  55. ),
  56. migrations.CreateModel(
  57. name="AutoLabelingConfig",
  58. fields=[
  59. ("id", models.AutoField(auto_created=True, primary_key=True, serialize=False, verbose_name="ID")),
  60. ("model_name", models.CharField(max_length=100)),
  61. ("model_attrs", models.JSONField(default=dict)),
  62. ("template", models.TextField(default="")),
  63. ("label_mapping", models.JSONField(default=dict)),
  64. ("default", models.BooleanField(default=False)),
  65. ("created_at", models.DateTimeField(auto_now_add=True)),
  66. ("updated_at", models.DateTimeField(auto_now=True)),
  67. (
  68. "project",
  69. models.ForeignKey(
  70. on_delete=django.db.models.deletion.CASCADE,
  71. related_name="auto_labeling_config",
  72. to="api.project",
  73. ),
  74. ),
  75. ],
  76. ),
  77. ]