view_list.html: Changed del_task to del_tasks, views.py: Changed del_task back to del_tasks

This commit is contained in:
shantisuresh01 2016-11-30 16:32:22 -05:00
parent 9bbc09dba8
commit 10df9f2cdf
7 changed files with 17 additions and 14 deletions

View file

@ -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'

View file

@ -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):

View file

@ -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)

View file

@ -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 %}

10
todo/werid_folder/py.py Normal file
View 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'

View file