1
0
mirror of https://gitlab.crans.org/bde/nk20 synced 2025-06-21 01:48:21 +02:00

Disable turbolinks for pages that require custom JS, like calendars or autocomplete fields

This commit is contained in:
Yohann D'ANELLO
2020-08-09 15:31:38 +02:00
parent 11fbbca2a8
commit 49bda926c6
12 changed files with 25 additions and 21 deletions

View File

@ -156,7 +156,10 @@ class ButtonTable(tables.Table):
edit = tables.LinkColumn('note:template_update',
args=[A('pk')],
attrs={'td': {'class': 'col-sm-1'},
'a': {'class': 'btn btn-sm btn-primary'}},
'a': {
'class': 'btn btn-sm btn-primary',
'data-turbolinks': 'false',
}},
text=_('edit'),
accessor='pk',
verbose_name=_("Edit"),)