Add resource.get_compute_fields.

This commit is contained in:
long2ice
2021-05-24 20:03:48 +08:00
parent 7a3629bd62
commit 18e0f7498c
6 changed files with 21 additions and 0 deletions

View File

@@ -91,6 +91,9 @@
{% for label in fields_label %}
<th>{{ label }}</th>
{% endfor %}
{% for compute_field in model_resource.compute_fields %}
<th>{{ compute_field.label }}</th>
{% endfor %}
{% if model_resource.actions %}
<th></th>
{% endif %}