def get_flags(record):
 props = (('admin_review', 'admin-review', _lazy('Admin Review')), ('is_jetpack', 'jetpack', _lazy('Jetpack Add-on')), ('requires_restart', 'requires_restart', _lazy('Requires Restart')), ('has_info_request', 'info', _lazy('More Information Requested')), ('has_editor_comment', 'editor', _lazy('Contains Reviewer Comment')), ('sources_provided', 'sources-provided', _lazy('Sources provided')), ('is_webextension', 'webextension', _lazy('WebExtension')))
 return [(cls, title) for (prop, cls, title) in props if getattr(record, prop)]

def get_flags ( record ) : props = ( ( 'admin_review' , 'admin-review' , _lazy ( 'Admin Review' ) ) , ( 'is_jetpack' , 'jetpack' , _lazy ( 'Jetpack Add-on' ) ) , ( 'requires_restart' , 'requires_restart' , _lazy ( 'Requires Restart' ) ) , ( 'has_info_request' , 'info' , _lazy ( 'More Information Requested' ) ) , ( 'has_editor_comment' , 'editor' , _lazy ( 'Contains Reviewer Comment' ) ) , ( 'sources_provided' , 'sources-provided' , _lazy ( 'Sources provided' ) ) , ( 'is_webextension' , 'webextension' , _lazy ( 'WebExtension' ) ) ) return [ ( cls , title ) for ( prop , cls , title ) in props if getattr ( record , prop ) ]
return a list of tuples (indicating which flags should be displayed for a particular add-on .