Skip to content

Commit 200dda9

Browse files
committed
Merge pull request #3675 from pt247/master
Fix for Incorrect regex in URLPathVersioning documentation #3638
2 parents d0352ae + 8b97bb8 commit 200dda9

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

docs/api-guide/versioning.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -130,7 +130,7 @@ Your URL conf must include a pattern that matches the version with a `'version'`
130130

131131
urlpatterns = [
132132
url(
133-
r'^(?P<version>[v1|v2]+)/bookings/$',
133+
r'^(?P<version>(v1|v2))/bookings/$',
134134
bookings_list,
135135
name='bookings-list'
136136
),

0 commit comments

Comments
 (0)