Initial work on asset DB perms

Partial #352.
This commit is contained in:
2019-10-11 13:30:22 +01:00
parent b7e14b7dc3
commit f5fc41ce30
6 changed files with 37 additions and 9 deletions

View File

@@ -62,6 +62,11 @@ class Asset(PolymorphicModel):
def __str__(self):
return str(self.asset_id) + ' - ' + self.description
class Meta:
permissions = (
('asset_finance', 'Can see financial data for assets'),
)
class Connector(models.Model):
description = models.CharField(max_length=80)
current_rating = models.DecimalField(decimal_places=2, max_digits=10, help_text='Amps')