Package to create Json WYSIWYG field for Django models
Project description
Dj jkabachcha is a Django app to create Json WYSIWYG field for Django models.
Quick start
Add “jkbachcha” to your INSTALLED_APPS like this:
``` INSTALLED_APPS = ( ... 'jkbachcha', ) ```
Import it in your models like:
``` from myghanta.db.fields import JsonField ```
Create model fields like:
``` json_text = JsonField() ```
Use widget to override default Textarea in ModelAdmin class like:
``` # import widget from jkbachcha.forms.widgets import JsonTextWidget # in ModelAdmin class, like formfield_overrides = { models.TextField : {'widget': JsonTextWidget}, } ```
Project details
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
dj-jkabachcha-0.2.tar.gz
(3.5 kB
view hashes)