Skip to content

Commit

Permalink
feat: add Sector to Tool
Browse files Browse the repository at this point in the history
  • Loading branch information
erictheise committed Mar 22, 2020
1 parent 27807e8 commit 51957f4
Show file tree
Hide file tree
Showing 2 changed files with 19 additions and 0 deletions.
18 changes: 18 additions & 0 deletions mdi/migrations/0036_tool_sectors.py
Original file line number Diff line number Diff line change
@@ -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'),
),
]
1 change: 1 addition & 0 deletions mdi/models.py
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down

0 comments on commit 51957f4

Please sign in to comment.