Merge of cable additions

This commit is contained in:
Matthew Smith
2019-10-14 00:09:33 +01:00
6 changed files with 37 additions and 10 deletions

View File

@@ -49,7 +49,11 @@ class Connector(models.Model):
class Asset(models.Model):
class Meta:
permissions = (
('asset_finance', 'Can see financial data for assets'),
)
parent = models.ForeignKey(to='self', related_name='asset_parent', blank=True, null=True, on_delete=models.SET_NULL)
asset_id = models.CharField(max_length=10, unique=True)
description = models.CharField(max_length=120)