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 config = self.rattail_config
if config: if config:
app = config.get_app() self.config = config
self.model = app.model self.app = self.config.get_app()
self.enum = config.get_enum() self.model = self.app.model
self.enum = self.app.enum
@property @property
def rattail_config(self): def rattail_config(self):