fix(docs/customization): Add models import to fix example (#5520)

pull/5522/head
Sanyam Khurana 2019-08-20 15:36:17 +05:30 zatwierdzone przez Matt Westcott
rodzic 94be338cbd
commit f9753f1f23
2 zmienionych plików z 2 dodań i 0 usunięć

Wyświetl plik

@ -388,6 +388,7 @@ Contributors
* John Carter
* Jonathan Liuti
* Rahmi Pruitt
* Sanyam Khurana
Translators
===========

Wyświetl plik

@ -159,6 +159,7 @@ or to add custom validation logic for your models:
.. code-block:: python
from django import forms
from django.db import models
import geocoder # not in Wagtail, for example only - http://geocoder.readthedocs.io/
from wagtail.admin.edit_handlers import FieldPanel
from wagtail.admin.forms import WagtailAdminPageForm