Browse Source

Feature: Use 2048 as url length

pull/262/head
winkidney 3 years ago
parent
commit
caeebb510b
1 changed files with 2 additions and 2 deletions
  1. +2
    -2
      core/models.py

+ 2
- 2
core/models.py View File

@@ -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)


Loading…
Cancel
Save