Skip to content

Commit

Permalink
document SplitText.has_more
Browse files Browse the repository at this point in the history
  • Loading branch information
Carl Meyer committed Jan 29, 2010
1 parent 731d417 commit 81f47ba
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion README.rst
Original file line number Diff line number Diff line change
Expand Up @@ -83,12 +83,14 @@ Accessing a SplitField on a model

When accessing an attribute of a model that was declared as a
``SplitField``, a ``SplitText`` object is returned. The ``SplitText``
object has two attributes:
object has three attributes:

``content``:
The full field contents.
``excerpt``:
The excerpt of ``content`` (read-only).
``has_more``:
True if the excerpt and content are the same, False otherwise.

This object also has a ``__unicode__`` method that returns the full
content, allowing ``SplitField`` attributes to appear in templates
Expand Down

0 comments on commit 81f47ba

Please sign in to comment.