Skip to content

Commit

Permalink
[#6118] obligation in dictionary view
Browse files Browse the repository at this point in the history
  • Loading branch information
wardi committed Mar 21, 2024
1 parent 4a51415 commit 27b9164
Showing 1 changed file with 6 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,12 @@
{{ super() }}
{% if res.url_type == 'tabledesigner' %}
{% set position = loop.index %}

{% if field.tdpkreq %}
{% call dictionary_field(_('Obligation')) %}
{{ _('Primary key') if field.tdpkreq == 'pk' else _('Required') }}
{% endcall %}
{% endif %}
{% set ct = h.tabledesigner_column_type(field) %}
{% if ct.view_snippet %}
{% snippet 'tabledesigner/view_snippets/' + ct.view_snippet,
Expand Down

0 comments on commit 27b9164

Please sign in to comment.