fix: assign convenience attrs for all views (config, app, enum, model)
This commit is contained in:
parent
b5f0ecb165
commit
f2fce2e305
|
@ -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):
|
||||
|
|
Loading…
Reference in a new issue