diff options
author | luxagraf <sng@luxagraf.net> | 2023-11-17 19:24:59 -0500 |
---|---|---|
committer | luxagraf <sng@luxagraf.net> | 2023-11-17 19:24:59 -0500 |
commit | fd96418a6793cb624d878c6b0628d95e64956969 (patch) | |
tree | 296e8b66ca0821144a80780195d0d1557356e5a4 /app/gtd | |
parent | 53bdf597c1d15ce7ae91f9d8e5b9aa0687e6163f (diff) |
gtd: added an all to project list view
Diffstat (limited to 'app/gtd')
-rw-r--r-- | app/gtd/models.py | 2 | ||||
-rw-r--r-- | app/gtd/templates/gtd/project_list.html | 1 |
2 files changed, 2 insertions, 1 deletions
diff --git a/app/gtd/models.py b/app/gtd/models.py index 38b4694..6b55f3b 100644 --- a/app/gtd/models.py +++ b/app/gtd/models.py @@ -56,7 +56,7 @@ class GTDProject(models.Model): body_html = models.TextField(blank=True) date_goal = models.DateField(blank=True, null=True) date_ended = models.DateField(blank=True, null=True) - project_type = models.IntegerField(choices=PROJECT_TYPE, default=2) + project_type = models.IntegerField(choices=PROJECT_TYPE, default=PERSONAL) outcome = models.ForeignKey(GTDOutcome, on_delete=models.SET_NULL, null=True, blank=True) class Meta: diff --git a/app/gtd/templates/gtd/project_list.html b/app/gtd/templates/gtd/project_list.html index 252cdce..ba46b59 100644 --- a/app/gtd/templates/gtd/project_list.html +++ b/app/gtd/templates/gtd/project_list.html @@ -2,6 +2,7 @@ {% block primary %} <main class="post-detail"> <div class="post-header"><ul class="flex header-list"> + <li><a class="btn" href="{% url 'gtd:project-list' %}">All</a></li> {% for object in project_types %} <li><a class="btn" href="{% url 'gtd:project-list-type' object.1|lower%}">{%if object.1 == 'Lbh'%}{{object.1|upper}}{%else%}{{object.1}}{%endif%}</a></li> {% endfor %} |