Django editlive documentation¶
Author: | Maxime Haineault <max@motion-m.ca> |
---|---|
Source code: | github.com project |
Bug tracker: | github.com issues |
Generated: | Sep 27, 2017 |
License: | Open source, BSD license |
Version: | 0.1.0 |
Everything you need to know about Django editlive.
Django editlive is a Free Open Source project which aims to make it easy to make elegant inline editable fields from database objects.
Here’s a simple example:
{% load editlive_tags %}
{% editlive "request.user.first_name" as firstname %}
Hello {{ firstname }}, how are you ?
This would output something like Hello [John], how are you ?.
The name [John] would be a clickable span element called the “placeholder”.
When the placeholder is clicked, it’s replaced by an input field and when this field is blurred, it is automatically saved to the database with AJAX. To cancel an edit you must use the escape key.
Adaptors are special classes which are used to abstract the different fields types and interact with them. Learn more about it below:
Table of Contents¶
- Installation
- Settings
- Usage examples
- Options
- The JavaScript API
- Adaptors
editlive.adaptors.base
– Base Adaptoreditlive.adaptors.boolean
– Boolean Adaptoreditlive.adaptors.char
– Char Adaptoreditlive.adaptors.choices
– Choices Adaptoreditlive.adaptors.boolean
– Date and DateTime Adaptorseditlive.adaptors.foreignkey
– ForeignKey Adaptoreditlive.adaptors.manytomany
– ManyToMany Adaptoreditlive.adaptors.text
– Text Adaptor
- UI widgets
- Developers