{% for app in app_list|custom_app_list:CUSTOM_ADMIN.autocomplete_app_list %}
{% if app.models|add_model_icons:CUSTOM_ADMIN.autocomplete_models_list %}
{% comment %}
{% endcomment %}
{% if app.show_models or app_list|length <= 1 %}
{% for model in app.models|add_model_icons:CUSTOM_ADMIN.autocomplete_models_list %}
{% if not model.perms.list_hide %} {# prevede perms['list_hide'] #}
{% endif %}
{% endfor %}
{% endif %}
{% endif %}
{% endfor %}
{% if model.perms.change %}
{{ model.name }}
{% else %}
{{ model.name }}
{% endif %}
{% if model.perms.add %}
{% trans 'Add' %}
{% endif %}
{% if model.perms.change %}
{% trans 'Change' %}
{% endif %}