Gene Boggs on Nostr: So I am making friends with #django and trying to manage a 3-field model called ...
So I am making friends with #django and trying to manage a 3-field model called History, that is updated every time an index.html form is POSTed. I want a "Clear History" button on my page, but clicking it and executing`History.objects.all().delete()` is not clearing the model data. Ideas?
Published at
2024-10-06 20:36:13Event JSON
{
"id": "8f9aca4086975bebbddb7a676be7d5c2beb70d2e8a0ab9700f890d8caee1ba59",
"pubkey": "d79f17272af477768ae1cce7b5c16a0c1e82c0aa12a43f7b5ed99fb175d61b0c",
"created_at": 1728246973,
"kind": 1,
"tags": [
[
"t",
"django"
],
[
"proxy",
"https://fosstodon.org/users/ology/statuses/113262393627394097",
"activitypub"
]
],
"content": "So I am making friends with #django and trying to manage a 3-field model called History, that is updated every time an index.html form is POSTed. I want a \"Clear History\" button on my page, but clicking it and executing`History.objects.all().delete()` is not clearing the model data. Ideas?",
"sig": "455e2fb1659c5c62fb1225d9d888acab8cd97fcd80363983663d86ab0d095c31d137a1d65223012bf582785d74249d8d265888bc636e018c50a27107206c87d3"
}