PEP-8 enhancements
This commit is contained in:
parent
2745c56c47
commit
84a2e6ca08
4 changed files with 2 additions and 3 deletions
1
setup.py
1
setup.py
|
@ -72,6 +72,7 @@ def read_file(*pathname):
|
||||||
with open(join(dirname(abspath(__file__)), *pathname)) as f:
|
with open(join(dirname(abspath(__file__)), *pathname)) as f:
|
||||||
return f.read()
|
return f.read()
|
||||||
|
|
||||||
|
|
||||||
setup(
|
setup(
|
||||||
name='django-todo',
|
name='django-todo',
|
||||||
version=package.__version__,
|
version=package.__version__,
|
||||||
|
|
|
@ -5,7 +5,6 @@ from todo.models import Item, List
|
||||||
from django.contrib.auth import get_user_model
|
from django.contrib.auth import get_user_model
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
class AddListForm(ModelForm):
|
class AddListForm(ModelForm):
|
||||||
# The picklist showing allowable groups to which a new list can be added
|
# 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
|
# determines which groups the user belongs to. This queries the form object
|
||||||
|
|
|
@ -9,7 +9,6 @@ from django.utils.encoding import python_2_unicode_compatible
|
||||||
from django.conf import settings
|
from django.conf import settings
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
@python_2_unicode_compatible
|
@python_2_unicode_compatible
|
||||||
class List(models.Model):
|
class List(models.Model):
|
||||||
name = models.CharField(max_length=60)
|
name = models.CharField(max_length=60)
|
||||||
|
|
|
@ -14,7 +14,7 @@ from django.template.loader import render_to_string
|
||||||
from django.views.decorators.csrf import csrf_exempt
|
from django.views.decorators.csrf import csrf_exempt
|
||||||
from django.contrib.sites.models import Site
|
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.forms import AddListForm, AddItemForm, EditItemForm, AddExternalItemForm, SearchForm
|
||||||
from todo.models import Item, List, Comment
|
from todo.models import Item, List, Comment
|
||||||
from todo.utils import mark_done, undo_completed_task, del_tasks, send_notify_mail
|
from todo.utils import mark_done, undo_completed_task, del_tasks, send_notify_mail
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue