Skip to content
Browse files

README update and version bump

  • Loading branch information...
1 parent 453a3ed commit 3c44f3bdc2c6f9cab03df9a58b05c40684d1e78d @flashingpumpkin flashingpumpkin committed Jul 25, 2011
Showing with 15 additions and 11 deletions.
  1. +4 −3 README.md
  2. +10 −7 README.rst
  3. +1 −1 stream/__init__.py
View
7 README.md
@@ -79,11 +79,12 @@ The generated fields on the `Action` model follow a simple pattern:
`"%(field_prefix)s_%(model_name)s"`
-Meaning, if you've registered the `User` model both as actor and as target,
-you could run custom queries like this:
+Meaning, if you've registered the `User` model as actor target and as
+action object, you could run custom queries like this:
- Action.objects.filter(action_user = User.objects.filter(username__startswith = 'a'))
+ Action.objects.filter(actor_user = User.objects.filter(username__startswith = 'a'))
Action.objects.filter(target_user = User.objects.filter(username__startswith = 'b'))
+ Action.objects.filter(action_object_user = User.objects.filter(username__startswith = 'c'))
View
17 README.rst
@@ -96,15 +96,18 @@ Hint
The generated fields on the ``Action`` model follow a simple pattern:
-``"%(field_prefix)s_%(model_name)s"``
+::
+
+ `"%(field_prefix)s_%(model_name)s"`
-Meaning, if you've registered the ``User`` model both as actor and as
-target, you could run custom queries like this:
+Meaning, if you've registered the ``User`` model as actor target and as
+action object, you could run custom queries like this:
+
+::
-Action.objects.filter(action\_user =
-User.objects.filter(username**startswith = 'a'))
-Action.objects.filter(target\_user =
-User.objects.filter(username**startswith = 'b'))
+ Action.objects.filter(actor_user = User.objects.filter(username__startswith = 'a'))
+ Action.objects.filter(target_user = User.objects.filter(username__startswith = 'b'))
+ Action.objects.filter(action_object_user = User.objects.filter(username__startswith = 'c'))
Utils
~~~~~
View
2 stream/__init__.py
@@ -1 +1 @@
-__version__ = '0.2.2'
+__version__ = '0.2.3'

0 comments on commit 3c44f3b

Please sign in to comment.
Something went wrong with that request. Please try again.