{% load i18n %}{% comment %} Without can_add (AddPermissionMixin: the user lacks add_perms) only the select is rendered: no button, no modal and no data-modalname, which is what addselectwidget() looks for. {% endcomment %}{% if can_add %}