Merge pull request #3709 from qrilka/patch-1

Fixed versioning regexp
This commit is contained in:
Xavier Ordoquy 2015-12-07 10:22:59 +01:00
commit b8d109f2cf
1 changed files with 1 additions and 1 deletions

View File

@ -135,7 +135,7 @@ Your URL conf must include a pattern that matches the version with a `'version'`
name='bookings-list'
),
url(
r'^(?P<version>[v1|v2]+)/bookings/(?P<pk>[0-9]+)/$',
r'^(?P<version>(v1|v2))/bookings/(?P<pk>[0-9]+)/$',
bookings_detail,
name='bookings-detail'
)