diff --git a/patchwork/migrations/0047_series_related_series.py b/patchwork/migrations/0047_series_related_series.py new file mode 100644 index 00000000..df8034c7 --- /dev/null +++ b/patchwork/migrations/0047_series_related_series.py @@ -0,0 +1,17 @@ +# Generated by Django 5.0.2 on 2024-03-14 16:20 + +from django.db import migrations, models + + +class Migration(migrations.Migration): + dependencies = [ + ('patchwork', '0046_patch_comment_events'), + ] + + operations = [ + migrations.AddField( + model_name='series', + name='related_series', + field=models.ManyToManyField(to='patchwork.series'), + ), + ] diff --git a/patchwork/models.py b/patchwork/models.py index 9a619bc5..da2f1674 100644 --- a/patchwork/models.py +++ b/patchwork/models.py @@ -848,6 +848,7 @@ class Series(FilenameMixin, models.Model): help_text='An optional name to associate with ' 'the series, e.g. "John\'s PCI series".', ) + related_series = models.ManyToManyField('self') date = models.DateTimeField() submitter = models.ForeignKey(Person, on_delete=models.CASCADE) version = models.IntegerField(