diff options
author | 2020-01-13 21:14:40 +0100 | |
---|---|---|
committer | 2020-01-13 21:14:40 +0100 | |
commit | e35529d1c0215ac8d7148c66a786ab8780e1f2e9 (patch) | |
tree | 968067e10c1e6255a3ae9672aaf818297f2f5a7a /pydis_site/apps/api/models | |
parent | Adding iframe attributes to attribute whitelist (diff) | |
parent | Update migration dependency to the latest merged (diff) |
Merge pull request #303 from python-discord/bot#549-show-attachments-staff
Show attachments in staff log
Diffstat (limited to 'pydis_site/apps/api/models')
-rw-r--r-- | pydis_site/apps/api/models/bot/message.py | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/pydis_site/apps/api/models/bot/message.py b/pydis_site/apps/api/models/bot/message.py index 31316a01..8b18fc9f 100644 --- a/pydis_site/apps/api/models/bot/message.py +++ b/pydis_site/apps/api/models/bot/message.py @@ -51,6 +51,13 @@ class Message(ModelReprMixin, models.Model): ), help_text="Embeds attached to this message." ) + attachments = pgfields.ArrayField( + models.URLField( + max_length=512 + ), + blank=True, + help_text="Attachments attached to this message." + ) @property def timestamp(self) -> datetime: |