Fix for Incorrect regex in URLPathVersioning documentation #3638

This commit is contained in:
Prashant Tiwari 2015-11-26 06:23:59 +00:00
parent d0352ae6fc
commit 8b97bb8f68

View File

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