Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Row styling failing silently? #787

Open
gamesbook opened this issue Nov 30, 2021 · 0 comments
Open

Row styling failing silently? #787

gamesbook opened this issue Nov 30, 2021 · 0 comments

Comments

@gamesbook
Copy link

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)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant