Add hidden boards
Hidden boards are excluded from the board listing. Signed-off-by: Alek Ratzloff <alekratz@gmail.com>
This commit is contained in:
@@ -7,7 +7,7 @@ def settings(request):
|
|||||||
|
|
||||||
|
|
||||||
def boards(request):
|
def boards(request):
|
||||||
return {"boards": Board.objects.filter(readonly=False)}
|
return {"boards": Board.objects.filter(readonly=False, hidden=False)}
|
||||||
|
|
||||||
|
|
||||||
def reports(request):
|
def reports(request):
|
||||||
|
|||||||
@@ -63,6 +63,8 @@ class Board(models.Model):
|
|||||||
autosink = models.IntegerField(default=300)
|
autosink = models.IntegerField(default=300)
|
||||||
# Whether this board is read-only or not.
|
# Whether this board is read-only or not.
|
||||||
readonly = models.BooleanField(default=False)
|
readonly = models.BooleanField(default=False)
|
||||||
|
# Whether this board appears in the board listing or not
|
||||||
|
hidden = models.BooleanField(default=False)
|
||||||
|
|
||||||
@property
|
@property
|
||||||
def threads(self):
|
def threads(self):
|
||||||
|
|||||||
Reference in New Issue
Block a user