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
|
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):
|
||||||
|
|
Loading…
Reference in a new issue