https://github.com/bulkan/django-quickwidget
form and template widgets using jquery-ui
https://github.com/bulkan/django-quickwidget
Last synced: 11 months ago
JSON representation
form and template widgets using jquery-ui
- Host: GitHub
- URL: https://github.com/bulkan/django-quickwidget
- Owner: bulkan
- Created: 2012-10-15T10:33:22.000Z (over 13 years ago)
- Default Branch: master
- Last Pushed: 2012-11-28T00:23:01.000Z (over 13 years ago)
- Last Synced: 2025-02-23T23:42:03.786Z (over 1 year ago)
- Language: Python
- Homepage:
- Size: 109 KB
- Stars: 0
- Watchers: 2
- Forks: 1
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
django-quickwidget
==================
The idea is to initially provide a generic way of adding a on into a template that has an
$('#id').autocomplete({..}); call.
The source of the JQuery autocomplete call would point to a generic view.
* Provide a template inclusion tag. {% autocomplete model widget_id %}
* This will include the html input tag and JavaScript
* Need to identify the call and what objects to get
* Model.{something?}.autocomplete(term=term) will return the autocompleted objects
* I don't know what something is. Would I use a model manager ? Or just add the autocomplete method directly to
the model ?
* The autocomplete method can also return the correctly formatted JSON