Add django-guardian for object-level permissions

Signed-off-by: Alek Ratzloff <alekratz@gmail.com>
This commit is contained in:
2022-06-26 21:30:45 -07:00
parent d931f52f01
commit 29dff20db9
4 changed files with 29 additions and 7 deletions

View File

@@ -331,3 +331,10 @@ class BanTemplate(models.Model):
return f"/{self.board.url}/ - {self.name}"
else:
return self.name
class Capcode(models.Model):
# Content to display *before* the capcoded user's name.
prefix = models.CharField(max_length=100)
# Content to display *after* the capcoded user's name.
suffix = models.CharField(max_length=100)