Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Django editing in place

Tags:

forms

django

edit

I would like to display a list of records from my database, then for each record, have two fields which the user can edit in place without needing to be directed to another page for editing. How do I go about this


2 Answers

Create a template for your page which holds the HTML for the list, the edit fields and a submit button. You can use the existing admin templates for guidance. Define a view function which handles the post and updates the database.

like image 177
Vinay Sajip Avatar answered Nov 23 '25 21:11

Vinay Sajip


This egg could be a solution, I hope that still you need it. Although I think I'm late.

like image 25
Goin Avatar answered Nov 23 '25 22:11

Goin



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!