PEP8 cleanups, E501.
This commit is contained in:
@@ -38,10 +38,15 @@ class DocumentCommentsApp(MayanAppConfig):
|
||||
)
|
||||
)
|
||||
|
||||
ModelAttribute(Document, label=_('Comments'), name='comments', type_name='related')
|
||||
ModelAttribute(
|
||||
Document, label=_('Comments'), name='comments', type_name='related'
|
||||
)
|
||||
|
||||
SourceColumn(source=Comment, label=_('Date'), attribute='submit_date')
|
||||
SourceColumn(source=Comment, label=_('User'), attribute=encapsulate(lambda x: x.user.get_full_name() if x.user.get_full_name() else x.user))
|
||||
SourceColumn(
|
||||
source=Comment, label=_('User'),
|
||||
attribute=encapsulate(lambda x: x.user.get_full_name() if x.user.get_full_name() else x.user)
|
||||
)
|
||||
SourceColumn(source=Comment, label=_('Comment'), attribute='comment')
|
||||
|
||||
ModelPermission.register(
|
||||
@@ -51,6 +56,14 @@ class DocumentCommentsApp(MayanAppConfig):
|
||||
)
|
||||
)
|
||||
|
||||
menu_sidebar.bind_links(links=[link_comment_add], sources=['comments:comments_for_document', 'comments:comment_add', 'comments:comment_delete', 'comments:comment_multiple_delete'])
|
||||
menu_sidebar.bind_links(
|
||||
links=[link_comment_add],
|
||||
sources=[
|
||||
'comments:comments_for_document', 'comments:comment_add',
|
||||
'comments:comment_delete', 'comments:comment_multiple_delete'
|
||||
]
|
||||
)
|
||||
menu_object.bind_links(links=[link_comment_delete], sources=[Comment])
|
||||
menu_facet.bind_links(links=[link_comments_for_document], sources=[Document])
|
||||
menu_facet.bind_links(
|
||||
links=[link_comments_for_document], sources=[Document]
|
||||
)
|
||||
|
||||
Reference in New Issue
Block a user