Jul 9 - Update the 'Handled by' more clear and understandable
This commit is contained in:
+8
-2
@@ -115,15 +115,21 @@ class Issue(db.Model):
|
||||
return self.followers.filter_by(user_id=user.id).first() is not None
|
||||
|
||||
# Human-readable label for the handler category (phase35).
|
||||
# Perspective-neutral wording so it reads the same for staff and customers.
|
||||
HANDLER_LABELS = {
|
||||
'internal': 'Our Staff',
|
||||
'internal': 'Janitorial Staff',
|
||||
'facility': 'Facility Staff',
|
||||
'vendor': 'External Vendor',
|
||||
}
|
||||
HANDLER_DESCRIPTIONS = {
|
||||
'internal': 'Our janitorial crew handles it.',
|
||||
'facility': "The facility's own on-site staff handle it.",
|
||||
'vendor': 'An outside contractor handles it.',
|
||||
}
|
||||
|
||||
@property
|
||||
def handler_label(self):
|
||||
return self.HANDLER_LABELS.get(self.handler_type or 'internal', 'Our Staff')
|
||||
return self.HANDLER_LABELS.get(self.handler_type or 'internal', 'Janitorial Staff')
|
||||
|
||||
@property
|
||||
def resolved_facility(self):
|
||||
|
||||
Reference in New Issue
Block a user