Permalink
Browse files

Simplified URL.

  • Loading branch information...
1 parent 9efe535 commit 1bc5db4b0e190c597ff13072f868402111a1d512 @jezdez jezdez committed Nov 20, 2012
Showing with 6 additions and 9 deletions.
  1. +6 −9 threaded_messages/urls.py
@@ -19,14 +19,11 @@
url(r"^recipient-search/$", recipient_search, name="recipient_search"),
url(r'^message-reply/(?P<thread_id>[\d]+)/$', message_ajax_reply, name="message_reply"),
- # modal composing
- url(r'^modal-compose/(?P<recipient>[\w.+-_]+)/$', compose, {
- "template_name":"django_messages/modal_compose.html",
- "form_class": ComposeForm
- }, name='modal_messages_compose_to'),
-
url(r'^modal-compose/$', compose, {
- "template_name":"django_messages/modal_compose.html",
- "form_class": ComposeForm
- }, name='modal_messages_compose'),
+ "template_name": "django_messages/modal_compose.html",
+ }, name='modal_messages_compose'),
+
+ url(r'^modal-compose/(?P<recipient>[\w.+-_]+)/$', compose, {
+ "template_name": "django_messages/modal_compose.html",
+ }, name='modal_messages_compose_to'),
)

0 comments on commit 1bc5db4

Please sign in to comment.