How do I disable django admin markup?
3 answers
The number of elements per page is determined ModelAdmin.list_per_page
.
As @codingjoe's comment suggests setting will sys.maxsize
probably be enough.
import sys
class PartAdmin(admin.ModelAdmin):
list_per_page = sys.maxsize
@SpiRail's answer is around the corner, but it is not correct to query the DB during module import. It is also list_max_show_all
not required because there will be no show all link when all items are already shown.
0
source to share