diff options
author | 2019-10-21 16:42:23 +0200 | |
---|---|---|
committer | 2019-10-21 16:42:23 +0200 | |
commit | 8ea0a1dc088d1ff0b5cfc2c79d01d4559580bf9a (patch) | |
tree | 315dfe44c26bf34e7dedbc8fba3f48f25fe299dc /pydis_site | |
parent | Add max_lengh for reminder.jump_url (diff) |
Change reminder.jump_url field to URLField
This make sure that the data receivied is valid
Diffstat (limited to 'pydis_site')
-rw-r--r-- | pydis_site/apps/api/models/bot/reminder.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/pydis_site/apps/api/models/bot/reminder.py b/pydis_site/apps/api/models/bot/reminder.py index 3b174252..d53fedb5 100644 --- a/pydis_site/apps/api/models/bot/reminder.py +++ b/pydis_site/apps/api/models/bot/reminder.py @@ -15,7 +15,7 @@ class Reminder(ModelReprMixin, models.Model): "If not, it has been sent out to the user." ) ) - jump_url = models.CharField( + jump_url = models.URLField( max_length=88, help_text=( "The jump url to the message that created the reminder" |