Add new field on snapshot, add migration
This commit is contained in:
parent
7d9da414d8
commit
5069c5b5ec
|
|
@ -0,0 +1,18 @@
|
||||||
|
# Generated by Django 3.2.13 on 2022-05-24 19:47
|
||||||
|
|
||||||
|
from django.db import migrations, models
|
||||||
|
|
||||||
|
|
||||||
|
class Migration(migrations.Migration):
|
||||||
|
|
||||||
|
dependencies = [
|
||||||
|
('books', '0032_auto_20211213_1342'),
|
||||||
|
]
|
||||||
|
|
||||||
|
operations = [
|
||||||
|
migrations.AddField(
|
||||||
|
model_name='snapshot',
|
||||||
|
name='title',
|
||||||
|
field=models.CharField(blank=True, max_length=255, null=True),
|
||||||
|
),
|
||||||
|
]
|
||||||
|
|
@ -119,6 +119,7 @@ class Snapshot(models.Model):
|
||||||
'objectives.Objective',
|
'objectives.Objective',
|
||||||
related_name='hidden_for_snapshots'
|
related_name='hidden_for_snapshots'
|
||||||
)
|
)
|
||||||
|
title = models.CharField(max_length=255, blank=True, null=True)
|
||||||
|
|
||||||
objects = SnapshotManager()
|
objects = SnapshotManager()
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue