From 8b97bb8f68970881190a3b62cf53495cc0e20786 Mon Sep 17 00:00:00 2001 From: Prashant Tiwari Date: Thu, 26 Nov 2015 06:23:59 +0000 Subject: [PATCH] Fix for Incorrect regex in URLPathVersioning documentation #3638 --- docs/api-guide/versioning.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/docs/api-guide/versioning.md b/docs/api-guide/versioning.md index 06b0056a4..a062dc096 100644 --- a/docs/api-guide/versioning.md +++ b/docs/api-guide/versioning.md @@ -130,7 +130,7 @@ Your URL conf must include a pattern that matches the version with a `'version'` urlpatterns = [ url( - r'^(?P[v1|v2]+)/bookings/$', + r'^(?P(v1|v2))/bookings/$', bookings_list, name='bookings-list' ),