Skip to content

Commit fc1403f

Browse files
author
Hugo
authored
Merge pull request #16 from HugoPouliquen/tp-extend_column
[MASTER] Extend column description in todo
2 parents 25c693d + 40ebbd6 commit fc1403f

File tree

2 files changed

+22
-2
lines changed

2 files changed

+22
-2
lines changed
Lines changed: 20 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,20 @@
1+
# -*- coding: utf-8 -*-
2+
# Generated by Django 1.11 on 2018-02-02 10:17
3+
from __future__ import unicode_literals
4+
5+
from django.db import migrations, models
6+
7+
8+
class Migration(migrations.Migration):
9+
10+
dependencies = [
11+
('fir_todos', '0006_remove_todolisttemplate_detection'),
12+
]
13+
14+
operations = [
15+
migrations.AlterField(
16+
model_name='todoitem',
17+
name='description',
18+
field=models.CharField(max_length=1000),
19+
),
20+
]

fir_todos/models.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@
66

77

88
class TodoItem(models.Model):
9-
description = models.CharField(max_length=140)
9+
description = models.CharField(max_length=1000)
1010
incident = models.ForeignKey(Incident, blank=True, null=True)
1111
category = models.ForeignKey(IncidentCategory, blank=True, null=True)
1212
business_line = models.ForeignKey(BusinessLine, blank=True, null=True)
@@ -40,7 +40,7 @@ class TodoListTemplate(models.Model):
4040
name = models.CharField(max_length=100)
4141
category = models.ForeignKey(IncidentCategory, null=True, blank=True)
4242
concerned_business_lines = models.ManyToManyField(BusinessLine, blank=True)
43-
43+
4444
todolist = models.ManyToManyField(TodoItem, blank=True, limit_choices_to={"incident__isnull": True})
4545

4646
def __unicode__(self):

0 commit comments

Comments
 (0)