all urls prefixed by 'facture'

This commit is contained in:
Serghei Mihai 2014-11-17 09:57:58 +01:00
parent bc0a617a52
commit 86832e22e1
1 changed files with 4 additions and 4 deletions

View File

@ -2,16 +2,16 @@ from django.conf.urls import patterns, include, url
from .views import InvoiceView, InvoiceDownloadView, TransactionView, TransactionResponseListView
urlpatterns = patterns('',
url(r'^simple/(?P<slug>\w+)/(?P<id>\w+)/(?P<hash>\w+)$',
url(r'^facture/simple/(?P<slug>\w+)/(?P<id>\w+)/(?P<hash>\w+)$',
InvoiceView.as_view(),
name='invoice'),
url(r'^details/(?P<slug>\w+)/(?P<id>\w+)/(?P<hash>\w+)$',
url(r'^facture/details/(?P<slug>\w+)/(?P<id>\w+)/(?P<hash>\w+)$',
InvoiceDownloadView.as_view(),
name='invoice-download'),
url(r'^transaction/(?P<slug>\w+)/(?P<id>\w+)/(?P<hash>\w+)$',
url(r'^facture/transaction/(?P<slug>\w+)/(?P<id>\w+)/(?P<hash>\w+)$',
TransactionView.as_view(),
name='transaction'),
url(r'^responses/(?P<regie>\w+).(?P<days>\d+).csv$',
url(r'^facture/responses/(?P<regie>\w+).(?P<days>\d+).csv$',
TransactionResponseListView.as_view(),
name='responses'),
)