summaryrefslogtreecommitdiffstats
path: root/instruments
diff options
context:
space:
mode:
Diffstat (limited to 'instruments')
-rw-r--r--instruments/migrations/0003_alter_subinstrument_relative.py18
-rw-r--r--instruments/migrations/0004_alter_subinstrument_relative.py18
-rw-r--r--instruments/models.py2
3 files changed, 37 insertions, 1 deletions
diff --git a/instruments/migrations/0003_alter_subinstrument_relative.py b/instruments/migrations/0003_alter_subinstrument_relative.py
new file mode 100644
index 0000000..a958b69
--- /dev/null
+++ b/instruments/migrations/0003_alter_subinstrument_relative.py
@@ -0,0 +1,18 @@
+# Generated by Django 5.0.4 on 2024-06-07 10:25
+
+from django.db import migrations, models
+
+
+class Migration(migrations.Migration):
+
+ dependencies = [
+ ("instruments", "0002_subinstrument_short"),
+ ]
+
+ operations = [
+ migrations.AlterField(
+ model_name="subinstrument",
+ name="relative",
+ field=models.ManyToManyField(blank=True, null=True, to="instruments.subinstrument"),
+ ),
+ ]
diff --git a/instruments/migrations/0004_alter_subinstrument_relative.py b/instruments/migrations/0004_alter_subinstrument_relative.py
new file mode 100644
index 0000000..c2a3943
--- /dev/null
+++ b/instruments/migrations/0004_alter_subinstrument_relative.py
@@ -0,0 +1,18 @@
+# Generated by Django 5.0.4 on 2024-06-07 10:26
+
+from django.db import migrations, models
+
+
+class Migration(migrations.Migration):
+
+ dependencies = [
+ ("instruments", "0003_alter_subinstrument_relative"),
+ ]
+
+ operations = [
+ migrations.AlterField(
+ model_name="subinstrument",
+ name="relative",
+ field=models.ManyToManyField(blank=True, to="instruments.subinstrument"),
+ ),
+ ]
diff --git a/instruments/models.py b/instruments/models.py
index e266fb2..9415957 100644
--- a/instruments/models.py
+++ b/instruments/models.py
@@ -39,7 +39,7 @@ class SubInstrument(Common):
parent = models.ForeignKey(Instrument, on_delete=models.CASCADE, verbose_name="Parent Instrument")
description = models.TextField(null=True, blank=True)
rationale = models.TextField(null=True, blank=True)
- relative = models.ManyToManyField("self")
+ relative = models.ManyToManyField("self", blank=True)
short = models.CharField(max_length=10, null=True, blank=True)
def effort(self):