fix: 修复工单火狐浏览器上页面展示 (#8753)

Co-authored-by: feng626 <1304903146@qq.com>
This commit is contained in:
fit2bot 2022-08-16 17:15:21 +08:00 committed by GitHub
parent 2f8a07e665
commit 4cad5affec
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 3 additions and 1 deletions

View File

@ -87,7 +87,7 @@ class BaseTicketMessage(UserMessage):
@property
def spec_items(self):
fields = self.ticket._meta.local_fields + self.ticket._meta.local_many_to_many
excludes = ['ticket_ptr']
excludes = ['ticket_ptr', 'flow']
item_names = [field.name for field in fields if field.name not in excludes]
return self._get_fields_items(item_names)

View File

@ -2,6 +2,7 @@
<html lang="en">
<body>
<p> {{ approve_info }}</p>
{% if content %}
<br>
<div style="width:100%; overflow-x:scroll;">
<table style="width:1000px; text-align:left">
@ -20,5 +21,6 @@
</table>
</div>
{% endif %}
</body>
</html>