From e0bd735f74c327f1c6f0abccc431b35a270fb8eb Mon Sep 17 00:00:00 2001 From: luxagraf Date: Mon, 7 Apr 2025 20:07:08 -0500 Subject: notes: added tags to list view --- app/notes/templates/note_list.html | 3 ++- app/notes/views.py | 2 +- 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/app/notes/templates/note_list.html b/app/notes/templates/note_list.html index 1439f4a..e262558 100644 --- a/app/notes/templates/note_list.html +++ b/app/notes/templates/note_list.html @@ -18,7 +18,8 @@

{% if object.url %}{{object.title}}{%else%}{{object.title}}{%endif%} edit

{{object.description}}

{% if object.project %}

For: {{object.project}}

{%endif%} -

View local

+

TAGS: {% for tag in object.tags.all %}{{tag}}, {%endfor%}

+

View local

delete

{% endfor%} diff --git a/app/notes/views.py b/app/notes/views.py index 724e674..53811d0 100644 --- a/app/notes/views.py +++ b/app/notes/views.py @@ -62,7 +62,7 @@ class LuxNoteListView(ListView): class LuxNoteDeleteView(DeleteView): # specify the model you want to use model = LuxNote - success_url = "/notes" + success_url = "/notes/" template_name = "confirm_delete.html" -- cgit v1.2.3-70-g09d2