Displaying table header even when there is no content? (django admin page) -
i want table appear headings when there no content. now, 'add' button appears when there isn't in database. how do this? please help
it looks no content:
it looks content:
so no content, should still show table headings. suggest way?
copy template @ django/contrib/admin/templates/admin/change_list_results.html
admin template folder.
keep structure:
project -app -templates -admin -change_list_results.html -manage.py
than, remove {% if results %} - {% endif %}
tags new template file , should work.
Comments
Post a Comment