forked from getpatchwork/patchwork
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
models: Add relationship fields to Series model
Series can now be linked based on their dependency o precedence Closes getpatchwork#506 Signed-off-by: andrepapoti <[email protected]>
- Loading branch information
1 parent
8c7aed3
commit c678787
Showing
2 changed files
with
92 additions
and
0 deletions.
There are no files selected for viewing
26 changes: 26 additions & 0 deletions
26
patchwork/migrations/0048_series_previous_series_series_required_series.py
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,26 @@ | ||
# Generated by Django 5.1.2 on 2024-11-21 16:12 | ||
|
||
from django.db import migrations, models | ||
|
||
|
||
class Migration(migrations.Migration): | ||
dependencies = [ | ||
('patchwork', '0047_add_database_indexes'), | ||
] | ||
|
||
operations = [ | ||
migrations.AddField( | ||
model_name='series', | ||
name='previous_series', | ||
field=models.ManyToManyField( | ||
related_name='subsequent_series', to='patchwork.series' | ||
), | ||
), | ||
migrations.AddField( | ||
model_name='series', | ||
name='required_series', | ||
field=models.ManyToManyField( | ||
related_name='required_by_series', to='patchwork.series' | ||
), | ||
), | ||
] |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters