summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJan Janssen <keroth.jj@gmail.com>2015-05-10 00:40:30 +0200
committerJan Janssen <keroth.jj@gmail.com>2015-05-10 00:40:30 +0200
commitd8e2f892014ae2958eec69730c8d2e7282eddd5a (patch)
tree4e65a4d80cc739302324c83fa7670db231e9c3bb
parentc7fd8c443357879aab51134e6679ace45baec103 (diff)
downloadktt-inventory-system-d8e2f892014ae2958eec69730c8d2e7282eddd5a.tar.bz2
Update models.py
removed useless code
-rw-r--r--inventory/models.py11
1 files changed, 0 insertions, 11 deletions
diff --git a/inventory/models.py b/inventory/models.py
index f9069df..6dfd7f6 100644
--- a/inventory/models.py
+++ b/inventory/models.py
@@ -98,17 +98,6 @@ class Item(models.Model):
return true
return false
- def add_shelf(self, code):
-
- self.name = 'Regalborte'
- self.description = 'Borte im Hochregal \n Reihe: ' + code[1] + 'Regal: ' + code[2]
- self.business_area = BusinessArea.objects.get(name='ideell')
- self.category = Category.objects.get(name='Inventar')
- self.parent = Barcode.objects.get(code='H0000')
- self.inUse = 'X'
- self.tag = Tag.objects.get(name='Regale & Storage')
- self.save()
-
def __unicode__(self):
return _(u"%(name)s (codes: %(barcodes)s)") % {'name': self.name, 'barcodes': self.barcodes()}