Initial commit

This commit is contained in:
2024-08-27 20:33:44 +02:00
commit 1f1832267d
14794 changed files with 1599592 additions and 0 deletions

View File

@@ -0,0 +1,15 @@
from django.conf import settings
from django.contrib import admin
from wagtail.documents.models import Document
if (
hasattr(settings, "WAGTAILDOCS_DOCUMENT_MODEL")
and settings.WAGTAILDOCS_DOCUMENT_MODEL != "wagtaildocs.Document"
):
# This installation provides its own custom document class;
# to avoid confusion, we won't expose the unused wagtaildocs.Document class
# in the admin.
pass
else:
admin.site.register(Document)