Added StockTracking API

/api/stock/track/
ListCreate API view
StockItem page now shows bootrap-table of tracking notes
This commit is contained in:
Oliver committed 2018-05-08 22:30:32 +10:00
1 parent 002c047105
commit f2982a59ad
4 files changed
+93 -20

No files matched your search

+3
View File
@@ -320,6 +320,9 @@ class StockItemTracking(models.Model):
""" Stock tracking entry
"""
def get_absolute_url(self):
return '/stock/track/{id}/'.format(id=self.id)
# Stock item
item = models.ForeignKey(StockItem, on_delete=models.CASCADE,
related_name='tracking_info')