<s> import django_tables2 as tables <EOL> from . models import Incident , Service , EventLog <EOL> from django_tables2_simplefilter import F <EOL> from django_tables2 . utils import A <EOL> class IncidentTable ( tables . Table ) : <EOL> selection = tables . CheckBoxColumn ( verbose_name = '<STR_LIT>' , accessor = '<STR_LIT>' , <EOL> attrs = { <EOL> "<STR_LIT>" : <EOL> { "<STR_LIT>" : "<STR_LIT>" } <EOL> } , <EOL> orderable = False ) <EOL> controls = tables . TemplateColumn ( template_name = "<STR_LIT>" , <EOL> attrs = { "<STR_LIT>" : { "<STR_LIT>" : "<STR_LIT>" } } ) <EOL> service_key = tables . LinkColumn ( '<STR_LIT>' , args = [ A ( '<STR_LIT>' ) ] , <EOL> verbose_name = "<STR_LIT>" , <EOL> attrs = { "<STR_LIT>" : { "<STR_LIT>" : "<STR_LIT>" } } ) <EOL> occurred_at = tables . TemplateColumn ( template_name = "<STR_LIT>" , <EOL> attrs = { "<STR_LIT>" : { "<STR_LIT>" : "<STR_LIT>" } } ) <EOL> incident_key = tables . TemplateColumn ( template_name = "<STR_LIT>" , <EOL> attrs = { "<STR_LIT>" : { "<STR_LIT>" : "<STR_LIT>" } } ) <EOL> description = tables . TemplateColumn ( template_name = "<STR_LIT>" , <EOL> attrs = { "<STR_LIT>" : { "<STR_LIT>" : "<STR_LIT>" } } ) <EOL> event_type = tables . Column ( attrs = { "<STR_LIT>" : { "<STR_LIT>" : "<STR_LIT>" } } ) <EOL> details = tables . Column ( attrs = { "<STR_LIT>" : { "<STR_LIT>" : "<STR_LIT>" } } ) <EOL> id = tables . Column ( attrs = { "<STR_LIT>" : { "<STR_LIT>" : "<STR_LIT>" } } ) <EOL> filters = ( F ( '<STR_LIT>' , '<STR_LIT>' , <EOL> values_list = [ ( str ( x ) , str ( x . id ) ) for x in Service . objects . all ( ) ] ) , <EOL> F ( '<STR_LIT>' , '<STR_LIT>' , <EOL> values_list = EventLog . ACTIONS ) , <EOL> ) <EOL> tr_class = tables . Column ( visible = False , empty_values = ( ) ) <EOL> def render_tr_class ( self , record ) : <EOL> return record . color <EOL> class Meta : <EOL> model = Incident <EOL> order_by = ( '<STR_LIT>' , ) <EOL> attrs = { '<STR_LIT:id>' : '<STR_LIT>' , <EOL> '<STR_LIT:class>' : "<STR_LIT>" } <EOL> sequence = ( "<STR_LIT>" , "<STR_LIT>" , "<STR_LIT:id>" , "<STR_LIT>" , "<STR_LIT>" , <EOL> "<STR_LIT>" , "<STR_LIT:description>" , "<STR_LIT>" ) <EOL> template = "<STR_LIT>" </s>
