Live object editing for django
Django-editlive came from a pragmatical need. Forms are great, but their workflow aren't always practical in the context of a web application.
With django-editlive users can edit model fields with minimum efforts without reloading the page.
This project is largely inspired by the django-inplaceeditform project, but has some fundamental differences in term of implementation.
editlive template tag- {%load editlive_tags%}
- {%editlive "object.date_test" as field%}
- <div>
- <label>Date:</label>
- {{field}}
- </div>
Performance is certainly not a benefit, at least on the server side.
But for user it makes the editing a lot faster and concurrency safe.
When submiting a standard form, every fields gets written back to the database, even if they haven't changed. This can lead to concurrency problem and data loss if two users edit and save the same form at the same time.
Django-editlive saves only the edited field, reducing considerably the chances of concurrent saves conflicts.
This concept is only good for editing, standard forms should be used to create new objects.
This project is not mature yet, which means it is not optimized for performances and still lack some basic feature.
It is not currently possible to instanciate two editlive for the same object field.
If you wish to report an issue or submit a feature request, please use the project's github issue tracker.
Aside from bug fixing and better documentation, the long term objectives and ideas are the following:
This free open source project was created and is maintained Maxime Haineault, web developer and co-founder of Motion Média.
It is licensed under BSD license.