projects
/
qcg-portal.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
job templates: saving and deleting
[qcg-portal.git]
/
qcg
/
models.py
diff --git
a/qcg/models.py
b/qcg/models.py
index
608c59f
..
580944c
100644
(file)
--- a/
qcg/models.py
+++ b/
qcg/models.py
@@
-250,3
+250,6
@@
class JobTemplate(models.Model):
def __unicode__(self):
return u"{} ({})".format(self.name, self.owner)
+
+ def get_absolute_url(self):
+ return reverse('template_submit', kwargs={'template_id': self.id})