From caeebb510b894a80b6a593395c75fef207c8357d Mon Sep 17 00:00:00 2001 From: winkidney Date: Thu, 11 Mar 2021 07:21:27 -0800 Subject: [PATCH] Feature: Use 2048 as url length --- core/models.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/core/models.py b/core/models.py index 8a70dc8..e258d5f 100644 --- a/core/models.py +++ b/core/models.py @@ -85,8 +85,8 @@ class Board(models.Model): class Pin(models.Model): submitter = models.ForeignKey(User, on_delete=models.CASCADE) private = models.BooleanField(default=False, blank=False) - url = models.CharField(null=True, blank=True, max_length=512) - referer = models.CharField(null=True, blank=True, max_length=512) + url = models.CharField(null=True, blank=True, max_length=2048) + referer = models.CharField(null=True, blank=True, max_length=2048) description = models.TextField(blank=True, null=True) image = models.ForeignKey(Image, related_name='pin', on_delete=models.CASCADE) published = models.DateTimeField(auto_now_add=True)