Skip to content

Commit

Permalink
Allow labels to be blank (closes #113)
Browse files Browse the repository at this point in the history
  • Loading branch information
wichmannpas committed Oct 30, 2018
1 parent b2506b8 commit 86d954a
Show file tree
Hide file tree
Showing 2 changed files with 19 additions and 1 deletion.
18 changes: 18 additions & 0 deletions label/migrations/0002_auto_20181030_1254.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
# Generated by Django 2.1 on 2018-10-30 11:54

from django.db import migrations, models


class Migration(migrations.Migration):

dependencies = [
('label', '0001_initial'),
]

operations = [
migrations.AlterField(
model_name='label',
name='description',
field=models.TextField(blank=True, null=True),
),
]
2 changes: 1 addition & 1 deletion label/models.py
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ class Meta:
related_name='labels')

title = models.CharField(max_length=15)
description = models.TextField()
description = models.TextField(null=True, blank=True)
color = models.CharField(max_length=6)

def __str__(self) -> str:
Expand Down

0 comments on commit 86d954a

Please sign in to comment.