From 84a2e6ca08da8bc89d167e2d126c3c81efa687de Mon Sep 17 00:00:00 2001 From: Scot Hacker Date: Sun, 4 Dec 2016 23:17:34 -0800 Subject: [PATCH] PEP-8 enhancements --- setup.py | 1 + todo/forms.py | 1 - todo/models.py | 1 - todo/views.py | 2 +- 4 files changed, 2 insertions(+), 3 deletions(-) diff --git a/setup.py b/setup.py index 58e305c..c32daa5 100755 --- a/setup.py +++ b/setup.py @@ -72,6 +72,7 @@ def read_file(*pathname): with open(join(dirname(abspath(__file__)), *pathname)) as f: return f.read() + setup( name='django-todo', version=package.__version__, diff --git a/todo/forms.py b/todo/forms.py index 77b7657..f7a015d 100644 --- a/todo/forms.py +++ b/todo/forms.py @@ -5,7 +5,6 @@ from todo.models import Item, List from django.contrib.auth import get_user_model - class AddListForm(ModelForm): # The picklist showing allowable groups to which a new list can be added # determines which groups the user belongs to. This queries the form object diff --git a/todo/models.py b/todo/models.py index 345829d..0c5dc53 100644 --- a/todo/models.py +++ b/todo/models.py @@ -9,7 +9,6 @@ from django.utils.encoding import python_2_unicode_compatible from django.conf import settings - @python_2_unicode_compatible class List(models.Model): name = models.CharField(max_length=60) diff --git a/todo/views.py b/todo/views.py index 76a28fd..d10d4e3 100644 --- a/todo/views.py +++ b/todo/views.py @@ -14,7 +14,7 @@ from django.template.loader import render_to_string from django.views.decorators.csrf import csrf_exempt from django.contrib.sites.models import Site -from todo import settings +from todo import settings from todo.forms import AddListForm, AddItemForm, EditItemForm, AddExternalItemForm, SearchForm from todo.models import Item, List, Comment from todo.utils import mark_done, undo_completed_task, del_tasks, send_notify_mail