From 21202e421e3028ef9ae9081fd9f5ad7786944f52 Mon Sep 17 00:00:00 2001 From: Caio Jhonny Date: Thu, 7 Apr 2022 10:50:01 +0200 Subject: [PATCH] Add missing import django models (#8301) Django models need to be imported --- CONTRIBUTORS.rst | 1 + docs/advanced_topics/documents/custom_document_model.md | 2 ++ 2 files changed, 3 insertions(+) diff --git a/CONTRIBUTORS.rst b/CONTRIBUTORS.rst index 7eabd423dd..5d7c3661ae 100644 --- a/CONTRIBUTORS.rst +++ b/CONTRIBUTORS.rst @@ -585,6 +585,7 @@ Contributors * Shwet Khatri * Abdulmajeed Isa * Sandil Ranasinghe +* Caio Jhonny Translators =========== diff --git a/docs/advanced_topics/documents/custom_document_model.md b/docs/advanced_topics/documents/custom_document_model.md index 72e15d7db1..c834a5a4ca 100644 --- a/docs/advanced_topics/documents/custom_document_model.md +++ b/docs/advanced_topics/documents/custom_document_model.md @@ -14,6 +14,8 @@ Here's an example: ```python # models.py +from django.db import models + from wagtail.documents.models import Document, AbstractDocument class CustomDocument(AbstractDocument):