physics_workload.app.tables.assignment

Attributes

Classes

AssignmentStaffTable

Table that appears on Staff pages, for non-staff users.

AssignmentStaffEditTable

Table that appears on Staff pages for staff users, with editable assignments.

AssignmentTaskTable

Table that appears on Task pages, for non-staff users.

AssignmentTaskEditTable

Table that appears on Task pages for staff users, with editable assignments.

Functions

handle_bulk_approval(table, request, **_)

test_func(_)

Module Contents

physics_workload.app.tables.assignment.logger: logging.Logger
class physics_workload.app.tables.assignment.AssignmentStaffTable(**kwargs)

Bases: iommi.Table

Table that appears on Staff pages, for non-staff users.

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
auto
columns
rows
iommi_style
physics_workload.app.tables.assignment.handle_bulk_approval(table, request, **_)
physics_workload.app.tables.assignment.test_func(_)
class physics_workload.app.tables.assignment.AssignmentStaffEditTable(**kwargs)

Bases: iommi.EditTable

Table that appears on Staff pages for staff users, with editable assignments.

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
auto
columns
rows
iommi_style
edit_actions
static extra__post_save(staff: app.models.Staff, **_)
Parameters:
  • staff

  • _

Returns:

class physics_workload.app.tables.assignment.AssignmentTaskTable(**kwargs)

Bases: iommi.EditTable

Table that appears on Task pages, for non-staff users.

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
auto
columns
rows
iommi_style
class physics_workload.app.tables.assignment.AssignmentTaskEditTable(**kwargs)

Bases: iommi.EditTable

Table that appears on Task pages for staff users, with editable assignments.

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
auto
columns
rows
iommi_style
edit_actions
static extra__post_save(task: app.models.Task, **_)
Parameters:
  • task

  • _

Returns: