/wagtailmodelchooser

Model choosers for Wagtail admin

Primary LanguagePythonBSD 2-Clause "Simplified" LicenseBSD-2-Clause

Wagtail model chooser

A plugin for Wagtail that provides a ModelChooserPanel and ModelChooserBlock for arbitrary models.

Installing

Install using pip:

pip install wagtail-modelchooser

Then add it to your INSTALLED_APPS:

It works with Wagtail 1.4 and upwards.

Quick start

To enable the chooser for your model, you must register the model. For simple cases, decorate your model with @register_model_chooser:

You can then use either ModelChooserPanel in an edit handler definition, or ModelChooserBlock in a StreamField definition: