view_list.html: Changed del_task to del_tasks, views.py: Changed del_task back to del_tasks
This commit is contained in:
parent
9bbc09dba8
commit
10df9f2cdf
7 changed files with 17 additions and 14 deletions
|
@ -1,10 +0,0 @@
|
||||||
"""
|
|
||||||
A multi-user, multi-group task management and assignment system for Django.
|
|
||||||
"""
|
|
||||||
__version__ = '1.6'
|
|
||||||
|
|
||||||
__author__ = 'Scot Hacker'
|
|
||||||
__email__ = 'shacker@birdhouse.org'
|
|
||||||
|
|
||||||
__url__ = 'https://github.com/shacker/django-todo'
|
|
||||||
__license__ = 'BSD License'
|
|
|
@ -2,6 +2,8 @@ from django import forms
|
||||||
from django.forms import ModelForm
|
from django.forms import ModelForm
|
||||||
from django.contrib.auth.models import Group
|
from django.contrib.auth.models import Group
|
||||||
from todo.models import Item, List
|
from todo.models import Item, List
|
||||||
|
from django.contrib.auth import get_user_model
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
class AddListForm(ModelForm):
|
class AddListForm(ModelForm):
|
||||||
|
|
|
@ -9,6 +9,7 @@ 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)
|
||||||
|
|
|
@ -112,13 +112,13 @@
|
||||||
{% if list_slug == "mine" %}
|
{% if list_slug == "mine" %}
|
||||||
<td><a href="{% url 'todo-incomplete_tasks' task.list.id task.list.slug %}">{{ task.list }}</a></td>
|
<td><a href="{% url 'todo-incomplete_tasks' task.list.id task.list.slug %}">{{ task.list }}</a></td>
|
||||||
{% endif %}
|
{% endif %}
|
||||||
<td><input type="checkbox" name="del_task" value="{{ task.id }}" id="del_task_{{ task.id }}"> </td>
|
<td><input type="checkbox" name="del_tasks" value="{{ task.id }}" id="del_task_{{ task.id }}"> </td>
|
||||||
</tr>
|
</tr>
|
||||||
{% endfor %}
|
{% endfor %}
|
||||||
</table>
|
</table>
|
||||||
|
|
||||||
<p><input type="submit" name="mark_tasks_done" value="Continue..." class="todo-button"></p>
|
<p><input type="submit" name="mark_tasks_done" value="Continue..." class="todo-button"></p>
|
||||||
<p><a class="todo" href="{% url 'todo-completed_tasks' list.id list_slug %}">View completed tasks</a></p>
|
<p><a class="todo" href="{% url 'todo-completed_tasks' list_id list_slug %}">View completed tasks</a></p>
|
||||||
|
|
||||||
{% else %}
|
{% else %}
|
||||||
|
|
||||||
|
@ -153,7 +153,7 @@
|
||||||
</table>
|
</table>
|
||||||
<p><input type="submit" name="deldonetasks" value="Continue..." class="todo-button"></p>
|
<p><input type="submit" name="deldonetasks" value="Continue..." class="todo-button"></p>
|
||||||
</form>
|
</form>
|
||||||
<p><a class="todo" href="{% url 'todo-incomplete_tasks' list.id list_slug %}">View incomplete tasks</a></p>
|
<p><a class="todo" href="{% url 'todo-incomplete_tasks' list_id list_slug %}">View incomplete tasks</a></p>
|
||||||
{% endif %}
|
{% endif %}
|
||||||
|
|
||||||
{% if user.is_staff %}
|
{% if user.is_staff %}
|
||||||
|
|
|
@ -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
|
||||||
|
|
10
todo/werid_folder/py.py
Normal file
10
todo/werid_folder/py.py
Normal file
|
@ -0,0 +1,10 @@
|
||||||
|
"""
|
||||||
|
A multi-user, multi-group task management and assignment system for Django.
|
||||||
|
"""
|
||||||
|
__version__ = '1.6'
|
||||||
|
|
||||||
|
__author__ = 'Scot Hacker'
|
||||||
|
__email__ = 'shacker@birdhouse.org'
|
||||||
|
|
||||||
|
__url__ = 'https://github.com/shacker/django-todo'
|
||||||
|
__license__ = 'BSD License'
|
0
todo/werid_folder/weird.py
Normal file
0
todo/werid_folder/weird.py
Normal file
Loading…
Add table
Add a link
Reference in a new issue