fix: assign convenience attrs for all views (config, app, enum, model)

This commit is contained in:
Lance Edgar 2024-08-09 19:22:26 -05:00
parent b5f0ecb165
commit f2fce2e305

View file

@ -58,9 +58,10 @@ class View:
config = self.rattail_config
if config:
app = config.get_app()
self.model = app.model
self.enum = config.get_enum()
self.config = config
self.app = self.config.get_app()
self.model = self.app.model
self.enum = self.app.enum
@property
def rattail_config(self):