Skip to content

Commit

Permalink
models: Add 'related_series' field to Series model
Browse files Browse the repository at this point in the history
Closes getpatchwork#506

Signed-off-by: andrepapoti <[email protected]>
  • Loading branch information
andrepapoti committed Mar 18, 2024
1 parent 7494873 commit ad538d3
Show file tree
Hide file tree
Showing 2 changed files with 18 additions and 0 deletions.
17 changes: 17 additions & 0 deletions patchwork/migrations/0047_series_related_series.py
Original file line number Diff line number Diff line change
@@ -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'),
),
]
1 change: 1 addition & 0 deletions patchwork/models.py
Original file line number Diff line number Diff line change
Expand Up @@ -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(
Expand Down

0 comments on commit ad538d3

Please sign in to comment.