aboutsummaryrefslogtreecommitdiffstats
path: root/pydis_site/apps/api/models
diff options
context:
space:
mode:
authorGravatar ChrisJL <[email protected]>2021-09-02 17:17:42 +0100
committerGravatar GitHub <[email protected]>2021-09-02 17:17:42 +0100
commit1ac1f258ca4b27d4a31b7223fc653b91fa767b58 (patch)
tree74a4a9a82c8221605ca003f888098f274c3bbe25 /pydis_site/apps/api/models
parentMerge pull request #573 from python-discord/jb3/update-gunicorn-prefs (diff)
parentMerge branch 'main' into doc-blank-base_url (diff)
Merge pull request #571 from Numerlor/doc-blank-base_url
Allow the base_url of a documentation link to be empty
Diffstat (limited to 'pydis_site/apps/api/models')
-rw-r--r--pydis_site/apps/api/models/bot/documentation_link.py1
1 files changed, 1 insertions, 0 deletions
diff --git a/pydis_site/apps/api/models/bot/documentation_link.py b/pydis_site/apps/api/models/bot/documentation_link.py
index 3dcc71fc..9941907c 100644
--- a/pydis_site/apps/api/models/bot/documentation_link.py
+++ b/pydis_site/apps/api/models/bot/documentation_link.py
@@ -30,6 +30,7 @@ class DocumentationLink(ModelReprMixin, models.Model):
"The base URL from which documentation will be available for this project. "
"Used to generate links to various symbols within this package."
),
+ blank=True,
validators=(ends_with_slash_validator,)
)
inventory_url = models.URLField(