Refactor: Remove unused origin field from Pin

This commit is contained in:
winkidney
2020-02-11 12:10:10 +08:00
parent a06f3d2310
commit ee43fa96ae
3 changed files with 19 additions and 4 deletions

View File

@@ -84,9 +84,6 @@ class Board(models.Model):
class Pin(models.Model):
submitter = models.ForeignKey(User)
url = models.CharField(null=True, blank=True, max_length=256)
# origin is tha same as referer but not work,
# should be removed some day
origin = models.CharField(null=True, blank=True, max_length=256)
referer = models.CharField(null=True, blank=True, max_length=256)
description = models.TextField(blank=True, null=True)
image = models.ForeignKey(Image, related_name='pin')