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

This commit is contained in:
Sanyam Khurana 2019-08-20 15:36:17 +05:30 committed by Matt Westcott
parent 94be338cbd
commit f9753f1f23
2 changed files with 2 additions and 0 deletions

View file

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

View file

@ -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