projects
/
htsworkflow.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
Prototype of bcmagic search plugin.
[htsworkflow.git]
/
htsworkflow
/
frontend
/
inventory
/
models.py
diff --git
a/htsworkflow/frontend/inventory/models.py
b/htsworkflow/frontend/inventory/models.py
index 456db7ce6dbeb7b1de667e6113e387746b9e9c9b..444d3c5f6c6009f5793e5b2131d6dd1eb0d63cd8 100644
(file)
--- a/
htsworkflow/frontend/inventory/models.py
+++ b/
htsworkflow/frontend/inventory/models.py
@@
-123,6
+123,9
@@
class Item(models.Model):
else:
return u"invb|%s" % (self.barcode_id)
+ def get_absolute_url(self):
+ return '/inventory/%s/' % (self.uuid)
+
pre_save.connect(_assign_uuid, sender=Item)