mirror of
https://github.com/nottinghamtec/PyRIGS.git
synced 2026-01-23 08:22:15 +00:00
Clearer logic for RA inverted fields
This commit is contained in:
@@ -690,7 +690,7 @@ class RiskAssessment(models.Model, RevisionMixin):
|
|||||||
'special_structures': False,
|
'special_structures': False,
|
||||||
'suspended_structures': False,
|
'suspended_structures': False,
|
||||||
}
|
}
|
||||||
#inverted_fields = filter(lambda key,value: value, expected_values.items())
|
inverted_fields = {key: value for (key, value) in expected_values.items() if not value}.keys()
|
||||||
|
|
||||||
class Meta:
|
class Meta:
|
||||||
ordering = ['event']
|
ordering = ['event']
|
||||||
|
|||||||
Reference in New Issue
Block a user