|
@@ -14,7 +14,7 @@ from wagtail.admin.models import get_object_usage
|
|
|
from wagtail.core.models import CollectionMember
|
|
|
from wagtail.search import index
|
|
|
from wagtail.search.queryset import SearchableQuerySetMixin
|
|
|
-from wagtail.utils.deprecation import RemovedInWagtail29Warning
|
|
|
+from wagtail.utils.deprecation import RemovedInWagtail210Warning
|
|
|
|
|
|
|
|
|
class DocumentQuerySet(SearchableQuerySetMixin, models.QuerySet):
|
|
@@ -24,7 +24,7 @@ class DocumentQuerySet(SearchableQuerySetMixin, models.QuerySet):
|
|
|
def get_document_model():
|
|
|
warnings.warn("wagtail.documents.models.get_document_model "
|
|
|
"has been moved to wagtail.documents.get_document_model",
|
|
|
- RemovedInWagtail29Warning)
|
|
|
+ RemovedInWagtail210Warning)
|
|
|
from wagtail.documents import get_document_model
|
|
|
return get_document_model()
|
|
|
|