summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--app/notes/templates/note_list.html3
-rw-r--r--app/notes/views.py2
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"