forked from rpkilby/jsonfield
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Updated README to include better explanation and shorter import
- Loading branch information
1 parent
07deeeb
commit 6971d1e
Showing
1 changed file
with
4 additions
and
6 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,13 +1,11 @@ | ||
django-jsonfield is a reusable django field that you can use inside your models. | ||
It makes storage of JSON easy and convenient by handling all of the | ||
serialization needed silently. | ||
django-jsonfield is a reusable django field that allows you to store validated JSON in your model. | ||
|
||
To use simply import and the field to one of your models. | ||
It silently takes care of serialization. To use, simple add the field to one of your models. | ||
|
||
=== | ||
|
||
from django.db import models | ||
from jsonfield.fields import JSONField | ||
from jsonfield import JSONField | ||
|
||
class MyModel(models.Model): | ||
json_field = JSONField() | ||
json = JSONField() |