Commit b8d109f2 by Xavier Ordoquy

Merge pull request #3709 from qrilka/patch-1

Fixed versioning regexp
parents 9f74b886 85db6a68
...@@ -135,7 +135,7 @@ Your URL conf must include a pattern that matches the version with a `'version'` ...@@ -135,7 +135,7 @@ Your URL conf must include a pattern that matches the version with a `'version'`
name='bookings-list' name='bookings-list'
), ),
url( url(
r'^(?P<version>[v1|v2]+)/bookings/(?P<pk>[0-9]+)/$', r'^(?P<version>(v1|v2))/bookings/(?P<pk>[0-9]+)/$',
bookings_detail, bookings_detail,
name='bookings-detail' name='bookings-detail'
) )
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment