0
0
mirror of https://github.com/wagtail/wagtail.git synced 2024-11-28 00:17:06 +01:00

Add missing import django models (#8301)

Django models need to be imported
This commit is contained in:
Caio Jhonny 2022-04-07 10:50:01 +02:00 committed by Matt Westcott
parent c5d66c7a1f
commit 21202e421e
2 changed files with 3 additions and 0 deletions

View File

@ -585,6 +585,7 @@ Contributors
* Shwet Khatri
* Abdulmajeed Isa
* Sandil Ranasinghe
* Caio Jhonny
Translators
===========

View File

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