mbari-org / SeafloorMappingDB

Make MBARI seafloor mapping datasets more accessible and useful
GNU General Public License v3.0
3 stars 6 forks source link

Replace ListViews with TableViews that have filters #171

Closed MBARIMike closed 2 years ago

MBARIMike commented 2 years ago

Having being frustrated with writing html templates for displaying list views of Missions, Expeditions, and Compilations I investigated using the popular Django apps django-tables2 and django-filters and this PR replaces the previous hacked-together ListViews with easier to maintain and extend TableViews that use new (very simple!) mission_filter.html, expedition_filter.html, and compilation_filter.html templates.

For example adding a column to a table requires only adding a field name in the appropriate class in smdb/smdb/tables.py.