Skip to content

Instantly share code, notes, and snippets.

Show Gist options
  • Save msheiny/d6856c30fe720f6e017068cef1a1afc5 to your computer and use it in GitHub Desktop.
Save msheiny/d6856c30fe720f6e017068cef1a1afc5 to your computer and use it in GitHub Desktop.
device = Device.objects.select_related("location").get(
name="MSHEINY-1", location___custom_field_data__building_code="25981"
)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment