mirror of
https://github.com/encode/django-rest-framework.git
synced 2025-03-03 19:00:17 +03:00
Fixed versioning regexp
booking list regexp was fixed in 8b97bb8f68
but single booking wasn't for some reason, and `v1v2/bookings/123/` shouldn't be allowed here
This commit is contained in:
parent
9f74b8860e
commit
85db6a681b
|
@ -135,7 +135,7 @@ Your URL conf must include a pattern that matches the version with a `'version'`
|
|||
name='bookings-list'
|
||||
),
|
||||
url(
|
||||
r'^(?P<version>[v1|v2]+)/bookings/(?P<pk>[0-9]+)/$',
|
||||
r'^(?P<version>(v1|v2))/bookings/(?P<pk>[0-9]+)/$',
|
||||
bookings_detail,
|
||||
name='bookings-detail'
|
||||
)
|
||||
|
|
Loading…
Reference in New Issue
Block a user