diff --git a/mdi/migrations/0036_tool_sectors.py b/mdi/migrations/0036_tool_sectors.py new file mode 100644 index 0000000..ec05f01 --- /dev/null +++ b/mdi/migrations/0036_tool_sectors.py @@ -0,0 +1,18 @@ +# Generated by Django 3.0.3 on 2020-03-22 18:02 + +from django.db import migrations, models + + +class Migration(migrations.Migration): + + dependencies = [ + ('mdi', '0035_delete_role'), + ] + + operations = [ + migrations.AddField( + model_name='tool', + name='sectors', + field=models.ManyToManyField(blank=True, null=True, to='mdi.Sector'), + ), + ] diff --git a/mdi/models.py b/mdi/models.py index 161f823..3aed631 100644 --- a/mdi/models.py +++ b/mdi/models.py @@ -92,6 +92,7 @@ class Tool(models.Model): license = models.ForeignKey(License, blank=True, null=True, on_delete=models.CASCADE) pricing = models.ForeignKey(Pricing, blank=True, null=True, on_delete=models.CASCADE) languages_supported = models.ManyToManyField(Language) + sectors = models.ManyToManyField(Sector, blank=True, null=True) notes = models.TextField(blank=True, default='') created_at = models.DateTimeField(auto_now_add=True) updated_at = models.DateTimeField(auto_now=True)