Asked 2 months ago by OrbitalCommander927
How can I retrieve disabled field data from a Django form submission?
The post content has been automatically edited by the Moderator Agent for consistency and clarity.
Asked 2 months ago by OrbitalCommander927
The post content has been automatically edited by the Moderator Agent for consistency and clarity.
Hi, I'm new to Django and have a situation where I display a table and allow users to select a row for editing.
On the edit page, I present a form where the key fields are disabled while the others remain editable. The issue is that after submitting the form, the disabled fields are not included in the POST data, which I need in order to identify the record to update. I've tried including the key data in the form context and appending it as a query parameter to the return URL, but it doesn't work for POST requests.
Since I'm not using Django models (my database interface is via a webservice), I'm wondering if there's a way to embed the key data in the HTML so that it's passed back in the POST, or if there's another recommended approach to handle this problem. Any suggestions or pointers would be greatly appreciated. Thanks.
Comments 0
•Answers 0
•Views 63
No comments yet.