Add field to allow repo hiding

This commit is contained in:
George Lacey 2022-07-26 15:25:27 +01:00
parent b4a1d99ae1
commit c506d9fcfa
2 changed files with 19 additions and 0 deletions

View File

@ -0,0 +1,18 @@
# Generated by Django 4.0.6 on 2022-07-26 15:24
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [
('borg', '0002_location'),
]
operations = [
migrations.AddField(
model_name='label',
name='visible',
field=models.BooleanField(default=True),
),
]

View File

@ -3,6 +3,7 @@ from django.db import models
class Label(models.Model):
label = models.TextField(blank=True, unique=True)
visible = models.BooleanField(default=True)
def __str__(self):
return self.label