From 37ea8a8a751a9385d2faba62fc405ee41d6a392a Mon Sep 17 00:00:00 2001 From: Scot Hacker Date: Fri, 7 Nov 2014 10:42:53 -0800 Subject: [PATCH] Neutralize some assumptions --- todo/forms.py | 5 +++++ todo/models.py | 2 +- todo/templates/todo/add_list.html | 9 --------- todo/templates/todo/base.html | 3 +-- todo/templates/todo/list_lists.html | 18 +----------------- todo/templates/todo/view_list.html | 3 ++- todo/templates/todo/view_task.html | 2 +- 7 files changed, 11 insertions(+), 31 deletions(-) diff --git a/todo/forms.py b/todo/forms.py index 78589b6..9ea1349 100644 --- a/todo/forms.py +++ b/todo/forms.py @@ -37,6 +37,11 @@ class AddItemForm(ModelForm): widget=forms.widgets.TextInput(attrs={'size': 35}) ) + # note = forms.CharField( + # widget=forms.TextArea(attrs={'size': 35}) + # ) + note = forms.CharField(widget=forms.Textarea()) + class Meta: model = Item diff --git a/todo/models.py b/todo/models.py index f853892..571d8e1 100644 --- a/todo/models.py +++ b/todo/models.py @@ -8,7 +8,7 @@ import datetime class List(models.Model): name = models.CharField(max_length=60) slug = models.SlugField(max_length=60, editable=False) - # slug = models.SlugField(max_length=60) + # slug = models.SlugField(max_length=60) group = models.ForeignKey(Group) def save(self, *args, **kwargs): diff --git a/todo/templates/todo/add_list.html b/todo/templates/todo/add_list.html index 3eb1412..ab423b5 100644 --- a/todo/templates/todo/add_list.html +++ b/todo/templates/todo/add_list.html @@ -4,15 +4,6 @@ {% block content %} -{% if messages %} - -{% endif %} - -

Add a list:

diff --git a/todo/templates/todo/base.html b/todo/templates/todo/base.html index 71e2c63..58e07fc 100644 --- a/todo/templates/todo/base.html +++ b/todo/templates/todo/base.html @@ -1,10 +1,9 @@ {% extends "base.html" %} -{% block page_heading %}GTD (Getting Things Done){% endblock %} + {% block extrahead %} -