Skip to content

Commit e345a3a

Browse files
Fix string format error while we're in here.
1 parent 51e4a58 commit e345a3a

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

docs/views.rst

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -223,7 +223,7 @@ registration code::
223223
app.add_url_rule(url, defaults={pk: None},
224224
view_func=view_func, methods=['GET',])
225225
app.add_url_rule(url, view_func=view_func, methods=['POST',])
226-
app.add_url_rule('%s<%s:%s>' % (url, pk), view_func=view_func,
226+
app.add_url_rule('%s<%s:%s>' % (url, pk, pk_type), view_func=view_func,
227227
methods=['GET', 'PUT', 'DELETE'])
228228

229229
register_api(UserAPI, 'user_api', '/users/', pk='user_id')

0 commit comments

Comments
 (0)