diff options
author | luxagraf <sng@luxagraf.net> | 2025-04-07 20:07:08 -0500 |
---|---|---|
committer | luxagraf <sng@luxagraf.net> | 2025-04-07 20:07:08 -0500 |
commit | e0bd735f74c327f1c6f0abccc431b35a270fb8eb (patch) | |
tree | f28b7d592fafae9d7e253e0cbca5d257d9bd6879 | |
parent | c8365aabc031517c0b3dc88af98ffd1a9942775f (diff) |
-rw-r--r-- | app/notes/templates/note_list.html | 3 | ||||
-rw-r--r-- | 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 @@ <h2>{% if object.url %}<a href="{{object.url}}">{{object.title}}</a>{%else%}{{object.title}}{%endif%} <span class="note-edit"><a href="{%url 'notes:note-edit' object.id %}">edit</a></span></h2> <p>{{object.description}}</p> {% if object.project %}<p class="small">For: <a href="{% url 'notes:project-detail' object.project.id %}">{{object.project}}</a></p>{%endif%} - <p class="small"><a href="{% url 'notes:note-detail' object.pk %}">View local</a></p> + <p class="note-edit">TAGS: {% for tag in object.tags.all %}<a href="/notes/?tag={{tag}}">{{tag}}</a>, {%endfor%}</p> + <p class="note-edit"><a href="{% url 'notes:note-detail' object.pk %}">View local</a></p> <p class="small"><a href="{% url 'notes:note-delete' object.pk %}">delete</a></p> </article> {% endfor%}</div> 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" |