gaia_cob_pmp.app.tables.researcher

Classes

ResearcherTable

Class to represent a table of sources.

Module Contents

class gaia_cob_pmp.app.tables.researcher.ResearcherTable(**kwargs)

Bases: iommi.Table

Class to represent a table of sources.

Parameters:
  • rows – a list or QuerySet of objects

  • columns – (use this only when not using the declarative style) a list of Column objects

  • attrs – dict of strings to string/callable of HTML attributes to apply to the table

  • row__attrs – dict of strings to string/callable of HTML attributes to apply to the row. Callables are passed the row as argument.

  • row__template – name of template (or Template object) to use for rendering the row

  • bulk_filter – filters to apply to the QuerySet before performing the bulk operation

  • bulk_exclude – exclude filters to apply to the QuerySet before performing the bulk operation

  • sortable – set this to False to turn off sorting for all columns

class Meta

This is stuff that you could otherwise pass as arguments to the constructor

auto
columns
query__advanced__include = False
rows