admin lot tags #47
|
@ -29,7 +29,6 @@ class AllDevicesView(InventaryMixin):
|
|||
breadcrumb = "Devices / All Devices"
|
||||
|
||||
def get_devices(self, user, offset, limit):
|
||||
import pdb; pdb.set_trace()
|
||||
return Device.get_all(self.request.user.institution, offset, limit)
|
||||
|
||||
|
||||
|
|
|
@ -136,6 +136,7 @@ class Device:
|
|||
self.lots = [
|
||||
x.lot for x in DeviceLot.objects.filter(device_id=self.id)]
|
||||
|
||||
@classmethod
|
||||
def get_all(cls, institution, offset=0, limit=None):
|
||||
sql = """
|
||||
WITH RankedAnnotations AS (
|
||||
|
|
Loading…
Reference in a new issue