Juhis on Nostr: If I understood it correctly, you could do: ``` old_version = ...
If I understood it correctly, you could do:
```
old_version = Package.objects.get(version=0.1.0) # simplified, do what you need to get the exact one in you real case
hosts_with_old = Host.objects.filter(hostdetails__packages__in=[old_version])
```
Published at
2024-07-21 10:01:20Event JSON
{
"id": "deba516b9299fb1e104da48f8bfc253f47cc19134af4845f64140f9d73dfd8dd",
"pubkey": "5a8257bd170b711a61fad1cb5abeafdd9d2f1f1cfb2934bf8ed7a67b9f40bde0",
"created_at": 1721556080,
"kind": 1,
"tags": [
[
"e",
"2ccb432942f7ce513ce845affbb8e922fa4e75bb8375d9d8fca26f6e5c67d133",
"",
"root"
],
[
"p",
"3df3d89bb59a64ff75dd54697fd4b32aacd77fa3a90bcd893f733339015c2089"
],
[
"proxy",
"https://mastodon.world/@hamatti/112823899309275798",
"web"
],
[
"proxy",
"https://mastodon.world/users/hamatti/statuses/112823899309275798",
"activitypub"
],
[
"L",
"pink.momostr"
],
[
"l",
"pink.momostr.activitypub:https://mastodon.world/users/hamatti/statuses/112823899309275798",
"pink.momostr"
],
[
"-"
]
],
"content": "If I understood it correctly, you could do:\n\n```\nold_version = Package.objects.get(version=0.1.0) # simplified, do what you need to get the exact one in you real case\n\nhosts_with_old = Host.objects.filter(hostdetails__packages__in=[old_version])\n```",
"sig": "e788032f0e5279480a7812cae8f727cd5d9e72eeaa4907e0412382da31b5f3a1d128e5f40d5b82a6c2780ae53bba928c31e777cda7d2e42bfad061f054c06c77"
}