Add field to allow repo hiding
This commit is contained in:
parent
b4a1d99ae1
commit
c506d9fcfa
18
borgweb/borg/migrations/0003_label_visible.py
Normal file
18
borgweb/borg/migrations/0003_label_visible.py
Normal 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),
|
||||||
|
),
|
||||||
|
]
|
|
@ -3,6 +3,7 @@ from django.db import models
|
||||||
|
|
||||||
class Label(models.Model):
|
class Label(models.Model):
|
||||||
label = models.TextField(blank=True, unique=True)
|
label = models.TextField(blank=True, unique=True)
|
||||||
|
visible = models.BooleanField(default=True)
|
||||||
|
|
||||||
def __str__(self):
|
def __str__(self):
|
||||||
return self.label
|
return self.label
|
||||||
|
|
Loading…
Reference in New Issue
Block a user