Feature: Add referer field for Pin

This commit is contained in:
winkidney
2018-08-21 19:08:35 +08:00
parent 89f088cc05
commit b7135b64aa
7 changed files with 43 additions and 7 deletions

View File

@@ -42,6 +42,7 @@ class Pin(models.Model):
submitter = models.ForeignKey(User)
url = models.URLField(null=True)
origin = models.URLField(null=True)
referer = models.URLField(null=True)
description = models.TextField(blank=True, null=True)
image = models.ForeignKey(Image, related_name='pin')
published = models.DateTimeField(auto_now_add=True)