def _get_breadcrumbs(self): device = self.get_device() breadcrumbs = get_device_breadcrumbs(device, self.request.user) breadcrumbs.append( Breadcrumb('Non-Conformities', reverse('gdrives:non-conformities', args=[device.pk]))) return breadcrumbs
def _get_breadcrumbs(self): device = self.get_device() breadcrumbs = get_device_breadcrumbs(device, self.request.user) breadcrumbs.append( Breadcrumb('Complaints', reverse('gdrives:complaints', args=[device.pk]))) return breadcrumbs
def recover_readings(request, device_id): device = GDrive.objects.get(pk=device_id) breadcrumbs = get_device_breadcrumbs(device, request.user) return generic_form(request, form_class=RecoverReadingsForm, form_kwargs={'device': device}, page_title='Recover Readings for Device {0}'.format( device.meid), breadcrumbs=breadcrumbs, system_message="The readings have been recovered.")
def get_breadcrumbs(self): device = self.get_device() breadcrumbs = get_device_breadcrumbs(device, self.request.user) return breadcrumbs
def get_breadcrumbs(self): device = self.get_device() return get_device_breadcrumbs(device, self.request.user, False)