diff --git a/osinaweb/db.sqlite3 b/osinaweb/db.sqlite3 index bb48b1c8..aa4e00d3 100644 Binary files a/osinaweb/db.sqlite3 and b/osinaweb/db.sqlite3 differ diff --git a/osinaweb/osinacore/__pycache__/models.cpython-310.pyc b/osinaweb/osinacore/__pycache__/models.cpython-310.pyc index c5d9e448..99125ae0 100644 Binary files a/osinaweb/osinacore/__pycache__/models.cpython-310.pyc and b/osinaweb/osinacore/__pycache__/models.cpython-310.pyc differ diff --git a/osinaweb/osinacore/migrations/0046_task_requirement.py b/osinaweb/osinacore/migrations/0046_task_requirement.py new file mode 100644 index 00000000..3eda2b26 --- /dev/null +++ b/osinaweb/osinacore/migrations/0046_task_requirement.py @@ -0,0 +1,19 @@ +# Generated by Django 4.2.5 on 2024-01-12 11:57 + +from django.db import migrations, models +import django.db.models.deletion + + +class Migration(migrations.Migration): + + dependencies = [ + ('osinacore', '0045_business_type'), + ] + + operations = [ + migrations.AddField( + model_name='task', + name='requirement', + field=models.ForeignKey(blank=True, null=True, on_delete=django.db.models.deletion.CASCADE, to='osinacore.projectrequirement'), + ), + ] diff --git a/osinaweb/osinacore/migrations/__pycache__/0046_task_requirement.cpython-310.pyc b/osinaweb/osinacore/migrations/__pycache__/0046_task_requirement.cpython-310.pyc new file mode 100644 index 00000000..28104161 Binary files /dev/null and b/osinaweb/osinacore/migrations/__pycache__/0046_task_requirement.cpython-310.pyc differ diff --git a/osinaweb/osinacore/models.py b/osinaweb/osinacore/models.py index 317f73c1..1fa3b29e 100644 --- a/osinaweb/osinacore/models.py +++ b/osinaweb/osinacore/models.py @@ -198,6 +198,7 @@ class Task(models.Model): name = models.CharField(max_length=250) project = models.ForeignKey(Project, on_delete=models.CASCADE, null=True) epic = models.ForeignKey(Epic, on_delete=models.CASCADE, null=True) + requirement = models.ForeignKey(ProjectRequirement, on_delete=models.CASCADE, null=True, blank=True) STATUS_CHOICES = ( ('Open', 'Open'), ('Working On', 'Working On'),