We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent bd81ac8 commit 9a4867eCopy full SHA for 9a4867e
2 files changed
eventmanager/events/templates/events/my_tasks.html
@@ -10,6 +10,7 @@
10
11
{% block content %}
12
<br> <h1 class="text-center animated fadeInUp slow"> My tasks: </h1> <br>
13
+
14
{% if is_empty%}
15
<h2 class="text-center animated fadeInUp slow">
16
You have no assigned tasks yet.
eventmanager/events/views.py
@@ -346,7 +346,7 @@ def tasks(request):
346
my_tasks = Task.objects.filter(assignee=user)
347
todo_tickets = my_tasks.filter(status='TODO')
348
doing_tickets = my_tasks.filter(status='DOING')
349
- if todo_tickets.count() != 0 and doing_tickets.count() != 0:
+ if todo_tickets.count() != 0 or doing_tickets.count() != 0:
350
context = {
351
'todo_tickets': todo_tickets,
352
'doing_tickets': doing_tickets,
0 commit comments