empty title also fine
This commit is contained in:
parent
1977f572e4
commit
07f16c947f
2 changed files with 18 additions and 1 deletions
17
app/item/migrations/0008_alter_week_title.py
Normal file
17
app/item/migrations/0008_alter_week_title.py
Normal file
|
@ -0,0 +1,17 @@
|
|||
# Generated by Django 4.2.3 on 2023-12-03 14:11
|
||||
|
||||
from django.db import migrations, models
|
||||
|
||||
|
||||
class Migration(migrations.Migration):
|
||||
dependencies = [
|
||||
("item", "0007_week_published_alter_item_published_alter_week_title"),
|
||||
]
|
||||
|
||||
operations = [
|
||||
migrations.AlterField(
|
||||
model_name="week",
|
||||
name="title",
|
||||
field=models.CharField(blank=True, default="", max_length=2048),
|
||||
),
|
||||
]
|
|
@ -189,7 +189,7 @@ class Week(models.Model):
|
|||
created = models.DateTimeField(auto_now_add=True)
|
||||
modified = models.DateTimeField(auto_now=True)
|
||||
monday = models.DateField(unique=True)
|
||||
title = models.CharField(max_length=2048)
|
||||
title = models.CharField(max_length=2048, blank=True, default="")
|
||||
published = models.DateTimeField(null=True, default=None, blank=True, editable=False)
|
||||
|
||||
def __str__(self):
|
||||
|
|
Loading…
Reference in a new issue