From f645c3a47153e9df61c58530e8ed8d951659b0fb Mon Sep 17 00:00:00 2001 From: Philipp Wassibauer Date: Mon, 13 Jun 2011 15:17:46 +0200 Subject: [PATCH] added missing modal views/urls, adapted html to include the tokenizer, bumped version and updated README --- README.rst | 14 ++++++++ threaded_messages/__init__.py | 2 +- .../django_messages/modal_compose.html | 21 +++++------ threaded_messages/urls.py | 14 ++++++++ threaded_messages/views.py | 36 +++++++++++++++++++ 5 files changed, 76 insertions(+), 11 deletions(-) diff --git a/README.rst b/README.rst index 74eb11f..bb4ad4b 100644 --- a/README.rst +++ b/README.rst @@ -19,6 +19,20 @@ Features * Installable using pip and easy_install * Modular message sending using facebox + +User Search +============ +The app comes with a very basic user search component. If you want to extend it or adapt it to your needs +look at views.recipient_search. Adapt your own version in a seperate app and then +change the call in your compose templates: + +$("#id_recipient").tokenInput("{% url recipient_search %}?format=json", parameters) + +to point to your custom view. + + + + Dependencies ============ * Haystack diff --git a/threaded_messages/__init__.py b/threaded_messages/__init__.py index daec472..19ad00e 100644 --- a/threaded_messages/__init__.py +++ b/threaded_messages/__init__.py @@ -1,2 +1,2 @@ -VERSION = (0, 0, 4) +VERSION = (0, 0, 5) __version__ = '.'.join(map(str, VERSION)) \ No newline at end of file diff --git a/threaded_messages/templates/django_messages/modal_compose.html b/threaded_messages/templates/django_messages/modal_compose.html index 1dbf0d6..4d28980 100644 --- a/threaded_messages/templates/django_messages/modal_compose.html +++ b/threaded_messages/templates/django_messages/modal_compose.html @@ -22,6 +22,7 @@ +