I using Tailwindcss custom admin dashboard style and i know it should changed in app_list.html, but i get nothing when i using {{ model.xxxxx }}
app_list.html
{% load i18n %}
{% if app_list %}
{% for app in app_list %}
<div class="app-{{ app.app_label }} module{% if app.app_url in request.path|urlencode %} current-app{% endif %}">
<ul>
<li>
<a href="{{ app.app_url }}" class="section" title="{% blocktranslate with name=app.name %}Models in the {{ name }} application{% endblocktranslate %}">{{ app.name }}</a>
</li>
{% for model in app.models %}
<li class="model-{{ model.object_name|lower }}{% if model.admin_url in request.path|urlencode %} current-model{% endif %}">
{% if model.admin_url %}
<a class="flex items-center p-2 text-base font-normal text-gray-900 rounded-lg dark:text-white hover:bg-gray-100 dark:hover:bg-gray-700"
href="{{ model.admin_url }}"{% if model.admin_url in request.path|urlencode %} aria-current="page"{% endif %}>
<i class="{{ model.get_icon }}"></i>
{{ model.name }}
</a>
{% else %}
{{ model.name }}
{% endif %}
</li>
{% endfor %}
</ul>
</div>
{% endfor %}
{% else %}
<p>{% translate 'You don’t have permission to view or edit anything.' %}</p>
{% endif %}
@admin.register(Category)
class CategoryAdmin(admin.ModelAdmin):
list_display = ['id', 'name', ]
list_editable = ['name']
@property
def get_icon(self):
return 'fa-solid fa-grip'
it display in console html:
<i class=""></i>