Skip to content

Row styling failing silently? #787

@gamesbook

Description

@gamesbook

Seems row styling is failing. Code below does not result in any color changes and no errors that I can see. Python 3.7 and Django 1.18

    def suit_row_attributes(self, obj, request):
        logger.debug('color filler for %s', obj)
        try:
            css_class = {
                True: 'warning',
                False: '',
            }.get(obj.filler)
            if obj.filler is False:
                css_class = {
                    True: 'success',
                    False: '',
                }.get(obj.selected)
            if css_class:
                return {'class': css_class}
        except AttributeError as err:
            logger.error('Cannot color filler - %s', err)

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions