Skip to content

Commit

Permalink
tuned urls.py to work with nicks with spaces
Browse files Browse the repository at this point in the history
  • Loading branch information
savelmtr committed Apr 27, 2020
1 parent 2b97592 commit 4a6686a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion django_messages/urls.py
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@
url(r'^inbox/$', inbox, name='messages_inbox'),
url(r'^outbox/$', outbox, name='messages_outbox'),
url(r'^compose/$', compose, name='messages_compose'),
url(r'^compose/(?P<recipient>[\w.@+-]+)/$', compose, name='messages_compose_to'),
url(r'^compose/(?P<recipient>[\w\s.@+-]+)/$', compose, name='messages_compose_to'),
url(r'^reply/(?P<message_id>[\d]+)/$', reply, name='messages_reply'),
url(r'^view/(?P<message_id>[\d]+)/$', view, name='messages_detail'),
url(r'^delete/(?P<message_id>[\d]+)/$', delete, name='messages_delete'),
Expand Down

0 comments on commit 4a6686a

Please sign in to comment.