Skip to content

Commit

Permalink
Don't use deprecated documents.models import
Browse files Browse the repository at this point in the history
  • Loading branch information
mikemonteith committed Jul 1, 2020
1 parent fd1d164 commit e45fec6
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/wagtail_factories/factories.py
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@
except ImportError:
from wagtail.core.models import Collection, Page, Site
from wagtail.images import get_image_model
from wagtail.documents.models import get_document_model
from wagtail.documents import get_document_model

__all__ = ["CollectionFactory", "ImageFactory", "PageFactory", "SiteFactory", "DocumentFactory"]
logger = logging.getLogger(__file__)
Expand Down

0 comments on commit e45fec6

Please sign in to comment.