aboutsummaryrefslogtreecommitdiffstats
path: root/pydis_site/apps/api/models
diff options
context:
space:
mode:
authorGravatar Leon Sandøy <[email protected]>2020-07-15 12:30:06 +0200
committerGravatar GitHub <[email protected]>2020-07-15 12:30:06 +0200
commit1f4c840e536b47e4c4d05fe68a445b9860b14d20 (patch)
tree2f1a370f3d45a6d608334a300ffdad38c7a91fdf /pydis_site/apps/api/models
parentMerge pull request #368 from python-discord/remove_django_crispy_bulma (diff)
parentMerge remote-tracking branch 'origin/master' into feat/deps/344/django-3.0 (diff)
Merge pull request #346 from python-discord/feat/deps/344/django-3.0
Update to Django 3.0
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 8b18fc9f..0b279580 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 bff4d642..0d8c574a 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(