Skip to content
Myr

Fix string format error while we're in here.

Before adoption: this commit came in with the history the project adopted, so no landing records it.

authored by Jim Rollenhagen · committed by Jim Rollenhagen · parent 51e4a58 · Browse files · 1 file+1 added−1 removed
This commit

State

Before adoption: this commit came in with the history the project adopted, so no landing records it.

Diff stats

1 file+1 added−1 removed

  • other:+1 added−1 removed

1 file+1 added−1 removed

modified:docs/views.rst+1 added-1 removed
221 unmodified lines
222 view_func = view.as_view(endpoint)223 app.add_url_rule(url, defaults={pk: None},224 view_func=view_func, methods=['GET',])225 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,227 methods=['GET', 'PUT', 'DELETE'])228229 register_api(UserAPI, 'user_api', '/users/', pk='user_id')