diff options
author | 2020-07-15 12:31:18 +0200 | |
---|---|---|
committer | 2020-07-15 12:31:18 +0200 | |
commit | 0f99bf948b5d2a4fdd3a938ed8c5a6b628fe58d8 (patch) | |
tree | 77008b8fc0b0546b7a78f23d6ea77b2f1b948047 /pydis_site/apps/api/models/bot | |
parent | Add the AllowList model and serializer. (diff) | |
parent | Merge 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/bot')
-rw-r--r-- | pydis_site/apps/api/models/bot/message.py | 1 | ||||
-rw-r--r-- | pydis_site/apps/api/models/bot/user.py | 1 |
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( |