我有一个表单,我用 django-select2 在模板中渲染它,我还下载了一个带有 css 和 js 文件的 metronic html 模板,它们在那里有 select2 样式
但是 select2 它不是 django-select2 包,但我需要 django-select2 那么我怎样才能在我的包上使用他们的自定义?
https://preview.keenthemes.com/html/metronic/docs/forms/select2
template.html
{% render_field form.contractor_counter|add_class:"form-select" %}
thats` how they say i need to use their template of select 2
{# <select class="form-select" data-control="select2" data-placeholder="Select an option">#}
{# <option></option>#}
{# <option value="1">Option 1</option>#}
{# <option value="2">Option 2</option>#}
{# </select>#}