mirror of
https://github.com/encode/django-rest-framework.git
synced 2024-11-22 17:47:04 +03:00
Merge pull request #3675 from pt247/master
Fix for Incorrect regex in URLPathVersioning documentation #3638
This commit is contained in:
commit
200dda91ac
|
@ -130,7 +130,7 @@ Your URL conf must include a pattern that matches the version with a `'version'`
|
||||||
|
|
||||||
urlpatterns = [
|
urlpatterns = [
|
||||||
url(
|
url(
|
||||||
r'^(?P<version>[v1|v2]+)/bookings/$',
|
r'^(?P<version>(v1|v2))/bookings/$',
|
||||||
bookings_list,
|
bookings_list,
|
||||||
name='bookings-list'
|
name='bookings-list'
|
||||||
),
|
),
|
||||||
|
|
Loading…
Reference in New Issue
Block a user