fix compare reverse url break
authorraph
Fri, 05 Feb 2010 16:03:53 +0100
changeset 150 db7bc2e89156
parent 149 0f2c5744b39b
child 151 150cb6e76f30
fix compare reverse url break
src/cm/urls.py
--- a/src/cm/urls.py	Fri Feb 05 16:01:32 2010 +0100
+++ b/src/cm/urls.py	Fri Feb 05 16:03:53 2010 +0100
@@ -64,7 +64,8 @@
      url(r'^text/(?P<key>\w*)/settings/$', text_settings, name="text-settings"),
      url(r'^text/(?P<key>\w*)/history/$', text_history, name="text-history"),
      url(r'^text/(?P<key>\w*)/history-version/(?P<version_key>\w*)/$', text_history_version, name="text-history-version"),
-     url(r'^text/(?P<key>\w*)/history-compare/(?P<v1_version_key>\w*)/(?P<v2_version_key>\w*)/(?P<mode>\d*)$', text_history_compare, name="text-history-compare"),
+     url(r'^text/(?P<key>\w*)/history-compare/(?P<v1_version_key>\w*)/(?P<v2_version_key>\w*)/$', text_history_compare, name="text-history-compare"),
+     url(r'^text/(?P<key>\w*)/history-compare/(?P<v1_version_key>\w*)/(?P<v2_version_key>\w*)/(?P<mode>\d*)$', text_history_compare, name="text-history-compare2"),
      url(r'^text/(?P<key>\w*)/revert/(?P<text_version_key>\w*)/$', text_revert, name="text-revert"),
      url(r'^text/(?P<key>\w*)/attach/(?P<attach_key>\w*)/$', text_attach, name="text-attach"),
      url(r'^text/(?P<key>\w*)/delete/$', text_delete, name="text-delete"),