0
0
mirror of https://github.com/wagtail/wagtail.git synced 2024-12-01 11:41:20 +01:00

Wording change to have this feature appear in search results

Searching the docs for the phrases "add django model to wagtail admin" and "add model to wagtail admin" (without the quotes) did not even yield this crucial page as one of the results.  The proposed wording puts the main idea of being able to show/edit ANY model via the Wagtail admin at the top of the document and includes wording to, hopefully, have this page appear at the top for anyone searching for how to implement this functionality.
This commit is contained in:
DanAtShenTech 2018-04-05 12:49:14 -04:00 committed by Matt Westcott
parent e809b6addd
commit 2f43c10e6c

View File

@ -2,16 +2,8 @@
``ModelAdmin``
=====================
The ``modeladmin`` module allows you to create customisable listing
pages for any model in your Wagtail project, and add navigation elements to the
Wagtail admin area so that you can access them. Simply extend the
``ModelAdmin`` class, override a few attributes to suit your needs, register
it with Wagtail using an easy one-line ``modeladmin_register`` method
(you can copy and paste from the examples below), and you're good to go.
You can use it with any Django model (it doesnt need to extend ``Page`` or
be registered as a ``Snippet``), and it wont interfere with any of the
existing admin functionality that Wagtail provides.
The ``modeladmin`` module allows you to add any model in your project to the Wagtail admin. You can create customisable listing
pages for a model, including plain Django models, and add navigation elements so that a model can be accessed directly from the Wagtail admin. Simply extend the ``ModelAdmin`` class, override a few attributes to suit your needs, register it with Wagtail using an easy one-line ``modeladmin_register`` method (you can copy and paste from the examples below), and you're good to go. This customisation doesnt need to extend ``Page`` or be registered as a ``Snippet``, and it wont interfere with any of the existing admin functionality that Wagtail provides.
.. _modeladmin_feature_summary: