Commit 09d9c19b authored by dorothee.kueppers's avatar dorothee.kueppers
Browse files

Todos auf Selection-Seite

parent d8a352a7
......@@ -42,7 +42,6 @@
</button>
{% endfor %}
</div>
</div>
</div>
</div>
......
......@@ -40,8 +40,9 @@ def add_todo(request):
def get_selection_page(request):
selection = Selection()
todos_with_recurrence = Todo.objects.exclude(recurrences__exact='')
todos_without_recurrence = Todo.objects.filter(recurrences__exact='')
# für Anzeige - Anfang
todos_with_recurrence = Todo.objects.filter(complete=False).exclude(recurrences__exact='')
todos_without_recurrence = Todo.objects.filter(complete=False).filter(recurrences__exact='')
todos_today = []
todos_soon = []
todos_late = []
......@@ -63,6 +64,7 @@ def get_selection_page(request):
todos_today.append(recur_todo)
else:
todos_soon.append(recur_todo)
# für Anzeige - Ende
if request.method == 'POST':
form = SelectionForm(request.POST)
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment