Feature: Add Private property for Pin and read proection

Now the private pin should only be viewed by owner.
This commit is contained in:
winkidney
2020-02-11 13:31:55 +08:00
parent acc8293374
commit 56d847aace
4 changed files with 42 additions and 5 deletions

View File

@@ -83,6 +83,7 @@ class Board(models.Model):
class Pin(models.Model):
submitter = models.ForeignKey(User)
private = models.BooleanField(default=False, blank=False)
url = 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)