Skip to content

Commit

Permalink
update readme and deploy to 0.2.4
Browse files Browse the repository at this point in the history
  • Loading branch information
joesolly committed Mar 10, 2017
1 parent e9e0961 commit 754f45b
Show file tree
Hide file tree
Showing 2 changed files with 18 additions and 3 deletions.
19 changes: 17 additions & 2 deletions README.rst
Original file line number Diff line number Diff line change
Expand Up @@ -10,8 +10,23 @@ Uses Trix 0.9.
Using django-trix
-----------------

django-trix includes both a form widget and a model admin mixin that enables
the rich text editor.
django-trix includes a form widget, a model field, and a model admin mixin that
enables the rich text editor. You can use any of these methods, but you do not
need to use all.

Model
~~~~~

To enable the editor in the Django admin (or any form) via the model field, use
the Trix model field *TrixField* which inherits from
django.db.models.TextField::

from django.db import models
from trix.fields import TrixField

class Post(models.Model):
content = TrixField('Content')


Admin
~~~~~
Expand Down
2 changes: 1 addition & 1 deletion setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@

setup(
name="django-trix",
version='0.2.3',
version='0.2.4',
packages=["trix"],
include_package_data=True,
description="Trix rich text editor widget for Django",
Expand Down

0 comments on commit 754f45b

Please sign in to comment.