2025-08-18 10:08:33 +03:30
|
|
|
import typing
|
2025-08-17 15:11:58 +03:30
|
|
|
|
2025-08-18 10:08:33 +03:30
|
|
|
|
|
|
|
|
def get_device_organization(assignment: object = None, device_serial: str = None) -> typing.Any:
|
|
|
|
|
""" get device owner (organization) information """
|
|
|
|
|
|
|
|
|
|
organization = assignment.objects.filter( # noqa
|
|
|
|
|
device__serial=device_serial
|
|
|
|
|
).first()
|
|
|
|
|
|
|
|
|
|
return organization
|