Formatting...

This commit is contained in:
2020-09-12 10:30:33 +01:00
parent d8e6f2f9c1
commit b959ca13a5
3 changed files with 9 additions and 8 deletions

View File

@@ -443,7 +443,6 @@ class Event(models.Model, RevisionMixin):
else:
return endDate
@property
def internal(self):
return bool(self.organisation and self.organisation.union_account)
@@ -631,9 +630,9 @@ class RiskAssessment(models.Model, RevisionMixin):
reviewed_by = models.ForeignKey(settings.AUTH_USER_MODEL, blank=True, null=True,
verbose_name="Reviewer", on_delete=models.CASCADE)
inverted_fields = ['nonstandard_equipment','nonstandard_use', 'contractors', 'other_companies', 'crew_fatigue', 'big_power',
'generators', 'other_companies_power', 'nonstandard_equipment_power','multiple_electrical_environments','noise_monitoring'
'special_structures', 'suspended_structures']
inverted_fields = ['nonstandard_equipment', 'nonstandard_use', 'contractors', 'other_companies', 'crew_fatigue', 'big_power',
'generators', 'other_companies_power', 'nonstandard_equipment_power', 'multiple_electrical_environments', 'noise_monitoring'
'special_structures', 'suspended_structures']
class Meta:
ordering = ['event']