vortiwave.blogg.se

Wagtail django rest framework
Wagtail django rest framework










wagtail django rest framework wagtail django rest framework

Chooser views can be used independently of chooser widgets they are used by rich text editors, for example. Wagtail-generic-chooser's functionality is split into two distinct components: chooser views (the URL endpoints that implement the modal interface for choosing an item) and chooser widgets (form elements that display the currently selected item, with a button that opens up the modal interface to choose a new one). Then add generic_chooser to your project's INSTALLED_APPS.

#Wagtail django rest framework code#

It is intended that wagtail-generic-chooser will be expanded to cover all the functionality of Wagtail's built-in choosers, such as inline object creation forms, and will then be incorporated into Wagtail as the new base implementation of those built-in choosers - this will reduce code duplication and greatly simplify the process of building new admin apps. It differs from existing model chooser add-ons ( Naeka/wagtailmodelchooser, neon-jungle/wagtailmodelchooser, springload/wagtailmodelchoosers) in that it is designed to be fully configurable through subclassing - in particular, it can be used on data sources other than Django models, such as REST API endpoints.

wagtail django rest framework

Wagtail-generic-chooser provides base classes for building chooser popups and form widgets for the Wagtail admin, matching the look and feel of Wagtail's built-in choosers for pages, documents, snippets and images.












Wagtail django rest framework