[PR #13332] [MERGED] Closes #11732: Protect against errant overwriting of data via web UI forms #14156

Closed
opened 2025-12-29 23:22:54 +01:00 by adam · 0 comments
Owner

📋 Pull Request Information

Original PR: https://github.com/netbox-community/netbox/pull/13332
Author: @jeremystretch
Created: 8/1/2023
Status: Merged
Merged: 8/1/2023
Merged by: @jeremystretch

Base: featureHead: 11732-form-race-protection


📝 Commits (1)

  • 0fa2f1e Closes #11732: Protect against errant overwriting of data via web UI forms

📊 Changes

2 files changed (+44 additions, -3 deletions)

View changed files

📝 netbox/netbox/forms/base.py (+2 -2)
📝 netbox/utilities/forms/mixins.py (+42 -1)

📄 Description

Closes: #11732

  • Introduce CheckLastUpdatedMixin, which adds the optional field _init_time and validation to check against an object's last_updated value
  • NetBoxModelForm now inherits from CheckLastUpdatedMixin

🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.

## 📋 Pull Request Information **Original PR:** https://github.com/netbox-community/netbox/pull/13332 **Author:** [@jeremystretch](https://github.com/jeremystretch) **Created:** 8/1/2023 **Status:** ✅ Merged **Merged:** 8/1/2023 **Merged by:** [@jeremystretch](https://github.com/jeremystretch) **Base:** `feature` ← **Head:** `11732-form-race-protection` --- ### 📝 Commits (1) - [`0fa2f1e`](https://github.com/netbox-community/netbox/commit/0fa2f1e974b86dd726af203357b6c16008fa4557) Closes #11732: Protect against errant overwriting of data via web UI forms ### 📊 Changes **2 files changed** (+44 additions, -3 deletions) <details> <summary>View changed files</summary> 📝 `netbox/netbox/forms/base.py` (+2 -2) 📝 `netbox/utilities/forms/mixins.py` (+42 -1) </details> ### 📄 Description ### Closes: #11732 - Introduce CheckLastUpdatedMixin, which adds the optional field `_init_time` and validation to check against an object's `last_updated` value - NetBoxModelForm now inherits from CheckLastUpdatedMixin --- <sub>🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.</sub>
adam added the pull-request label 2025-12-29 23:22:54 +01:00
adam closed this issue 2025-12-29 23:22:54 +01:00
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: starred/netbox#14156