Skip to content

Commit

Permalink
Use MemberIdColumn for AuthorColumn as it manages displaying Creator …
Browse files Browse the repository at this point in the history
…fullname by default
  • Loading branch information
gbastien committed Dec 11, 2023
1 parent d0c155f commit c24a182
Showing 1 changed file with 2 additions and 4 deletions.
6 changes: 2 additions & 4 deletions src/collective/iconifiedcategory/browser/tabview.py
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,7 @@

from collective.eeafaceted.z3ctable.browser.views import ExtendedCSSTable
from collective.eeafaceted.z3ctable.columns import BaseColumn
from collective.eeafaceted.z3ctable.columns import MemberIdColumn
from collective.iconifiedcategory import _
from collective.iconifiedcategory import utils
from collective.iconifiedcategory.interfaces import ICategorizedConfidential
Expand Down Expand Up @@ -217,13 +218,10 @@ def renderCell(self, content):
return html.escape(category_title)


class AuthorColumn(BaseColumn):
class AuthorColumn(MemberIdColumn):
header = _(u'Author')
weight = 40

def renderCell(self, content):
return html.escape(content.Creator)


class CreationDateColumn(BaseColumn):
header = _(u'Creation date')
Expand Down

0 comments on commit c24a182

Please sign in to comment.