projects
/
qcg-portal.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
a48622a
)
job templates: info after deletion
author
Maciej Tronowski
<mtro@man.poznan.pl>
Mon, 4 May 2015 09:23:42 +0000
(11:23 +0200)
committer
Maciej Tronowski
<mtro@man.poznan.pl>
Mon, 4 May 2015 09:23:42 +0000
(11:23 +0200)
qcg/views.py
patch
|
blob
|
history
diff --git
a/qcg/views.py
b/qcg/views.py
index
5e6cd8e
..
a627524
100644
(file)
--- a/
qcg/views.py
+++ b/
qcg/views.py
@@
-307,6
+307,10
@@
def job_templates(request):
@require_POST
@login_required
def template_delete(request, template_id):
- get_object_or_404(request.user.templates, id=template_id).delete()
+ template = get_object_or_404(request.user.templates, id=template_id)
+ template.delete()
+
+ messages.success(request, format_html('<span class="glyphicon glyphicon-info-sign" aria-hidden="true"></span> '
+ 'Usunięto szablon <em>{}</em>.', template.name))
return redirect('job_templates')