From 85db6a681b9d368686977a02d740c43edecfdfe2 Mon Sep 17 00:00:00 2001 From: Kirill Zaborsky Date: Mon, 7 Dec 2015 10:59:57 +0300 Subject: [PATCH] Fixed versioning regexp booking list regexp was fixed in https://github.com/tomchristie/django-rest-framework/commit/8b97bb8f68970881190a3b62cf53495cc0e20786 but single booking wasn't for some reason, and `v1v2/bookings/123/` shouldn't be allowed here --- 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 a062dc09..f6e32f47 100644 --- a/docs/api-guide/versioning.md +++ b/docs/api-guide/versioning.md @@ -135,7 +135,7 @@ Your URL conf must include a pattern that matches the version with a `'version'` name='bookings-list' ), url( - r'^(?P[v1|v2]+)/bookings/(?P[0-9]+)/$', + r'^(?P(v1|v2))/bookings/(?P[0-9]+)/$', bookings_detail, name='bookings-detail' )