villebro commented on code in PR #30398:
URL: https://github.com/apache/superset/pull/30398#discussion_r1777447705
##########
superset/models/core.py:
##########
@@ -102,7 +102,7 @@ class KeyValue(Model): # pylint:
disable=too-few-public-methods
value = Column(utils.MediumText(), nullable=False)
-class CssTemplate(Model, AuditMixinNullable):
+class CssTemplate(Model, AuditMixinNullable, UUIDMixin):
Review Comment:
This was already incorrect, but in general it's idiomatic to place the mixin
_before_ the main class to ensure MRO (otherwise functionality in the main
class may overwrite functionality in the mixin):
```suggestion
class CssTemplate(AuditMixinNullable, UUIDMixin, Model):
```
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: [email protected]
For queries about this service, please contact Infrastructure at:
[email protected]
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]