def breadcrumbs(self): return [ inventory_breadcrumb(), 'chemical_list', breadcrumb(self.object.name, reverse('chemical_detail', kwargs={'pk': self.object.pk})), breadcrumb('Edit', reverse('chemical_edit', kwargs={'pk': self.object.pk})), ]
def breadcrumbs(self): # Set the breadcrumb navigation breadcrumbs = [ inventory_breadcrumb(), 'chemical_list', breadcrumb(self.object.chemical.name, reverse('chemical_detail', kwargs={'pk': self.object.chemical.pk})), breadcrumb('Edit container', reverse('container_edit', kwargs={'pk': self.object.pk})), ] return breadcrumbs
def stock_breadcrumbs(stock_take): return [ utilities_breadcrumb(), 'stock_take', breadcrumb( stock_take.name, reverse('results', kwargs={'stock': stock_take.id}) ) ]
def stock_breadcrumbs(stock_take): return [ utilities_breadcrumb(), 'stock_take', breadcrumb( stock_take.name, reverse('stock_take_result', kwargs={'pk': stock_take.pk}) ) ]
def chemical_breadcrumbs(chemical): return [ inventory_breadcrumb(), 'chemical_list', breadcrumb( chemical.name, reverse('chemical_detail', kwargs={'pk': chemical.pk}) ) ]
def utilities_breadcrumb(): return breadcrumb('Utilities', reverse_lazy('utilities_main'))
def inventory_breadcrumb(): return breadcrumb('Chemical Inventory', reverse_lazy('inventory_main'))