You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
In documentation, you mentioned: "To enable the chooser for your model, you must register the model. For simple cases, decorate your model with @register_model_chooser".
How would you register the model in other cases ?
For example, I have a Django project to which I additionally added Wagtail. So I still have many pure Django apps. And I don't want to touch their source code so registering them with decorator is not an option for me.
Is there another way to register models ? Could I import this models into Wagtail app and make registration there ?
The text was updated successfully, but these errors were encountered:
as long as you put this somewhere that's called on startup like wagtail_hooks.py or models.py I believe this should work. If it doesn't then we should look into making it work, let me know!
In documentation, you mentioned: "To enable the chooser for your model, you must register the model. For simple cases, decorate your model with
@register_model_chooser
".How would you register the model in other cases ?
For example, I have a Django project to which I additionally added Wagtail. So I still have many pure Django apps. And I don't want to touch their source code so registering them with decorator is not an option for me.
Is there another way to register models ? Could I import this models into Wagtail app and make registration there ?
The text was updated successfully, but these errors were encountered: