kopia lustrzana https://github.com/wagtail/wagtail
Add Django models import to Site Settings docs
rodzic
51d8cac6f4
commit
602cd50d18
|
@ -22,6 +22,7 @@ Create a model that inherits from ``BaseSetting``, and register it using the ``r
|
|||
|
||||
.. code-block:: python
|
||||
|
||||
from django.db import models
|
||||
from wagtail.contrib.settings.models import BaseSetting, register_setting
|
||||
|
||||
@register_setting
|
||||
|
|
Ładowanie…
Reference in New Issue