aboutsummaryrefslogtreecommitdiffstats
path: root/pydis_site/apps/api/models
diff options
context:
space:
mode:
authorGravatar Leon Sandøy <[email protected]>2020-07-15 12:31:18 +0200
committerGravatar Leon Sandøy <[email protected]>2020-07-15 12:31:18 +0200
commit0f99bf948b5d2a4fdd3a938ed8c5a6b628fe58d8 (patch)
tree77008b8fc0b0546b7a78f23d6ea77b2f1b948047 /pydis_site/apps/api/models
parentAdd the AllowList model and serializer. (diff)
parentMerge pull request #346 from python-discord/feat/deps/344/django-3.0 (diff)
Merge branch 'master' into whitelist_system
Diffstat (limited to 'pydis_site/apps/api/models')
-rw-r--r--pydis_site/apps/api/models/bot/message.py1
-rw-r--r--pydis_site/apps/api/models/bot/user.py1
2 files changed, 2 insertions, 0 deletions
diff --git a/pydis_site/apps/api/models/bot/message.py b/pydis_site/apps/api/models/bot/message.py
index 7694ac75..78dcbf1d 100644
--- a/pydis_site/apps/api/models/bot/message.py
+++ b/pydis_site/apps/api/models/bot/message.py
@@ -49,6 +49,7 @@ class Message(ModelReprMixin, models.Model):
pgfields.JSONField(
validators=(validate_tag_embed,)
),
+ blank=True,
help_text="Embeds attached to this message."
)
attachments = pgfields.ArrayField(
diff --git a/pydis_site/apps/api/models/bot/user.py b/pydis_site/apps/api/models/bot/user.py
index d7f203aa..cd2d58b9 100644
--- a/pydis_site/apps/api/models/bot/user.py
+++ b/pydis_site/apps/api/models/bot/user.py
@@ -52,6 +52,7 @@ class User(ModelReprMixin, models.Model):
)
),
default=list,
+ blank=True,
help_text="IDs of roles the user has on the server"
)
in_guild = models.BooleanField(