Open ghost opened 7 years ago
Can you make a trace back of this?
There's no stacktrace. I think its because of searching for the wrong key object_name
in the lambda function of the init_with_context
in modules.py
.
Following line is implemented:
lambda model: self.models is None or ('%s.%s' % (app_name, model['object_name'])) in self.models or ('%s.*' % app_name) in self.models,
If I change it by replacing object_name
with model_name
, it works.
@f1nality, what do you think about it?
Hi @f1nality @SalahAdDin, any suggestions?
@f1nality @SalahAdDin bump!
@f1nality Hey!
Please come to the django-jet Discord server so we can organize if you like:
Welcome! 😄
Hi,
if you setup a custom dashboard with some modules, e. g. AppList, ModelList, LinkedList, ..., the module instantiating with the argument
models
works only with the asterisk like this:models=('appname.*',)
. In case of explicit given model names likemodels=('appname.the_model',)
, the dashboard module remains empty. No models appear in the module.The code snippet:
The result on the dashboard: