Add new field on snapshot, add migration

This commit is contained in:
Ramon Wenger 2022-05-24 22:49:16 +02:00
parent 7d9da414d8
commit 5069c5b5ec
2 changed files with 19 additions and 0 deletions

View File

@ -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),
),
]

View File

@ -119,6 +119,7 @@ class Snapshot(models.Model):
'objectives.Objective',
related_name='hidden_for_snapshots'
)
title = models.CharField(max_length=255, blank=True, null=True)
objects = SnapshotManager()