Commit e7ca3265 by Tom Christie

Tweaks

parent 19135061
...@@ -35,9 +35,9 @@ Example: ...@@ -35,9 +35,9 @@ Example:
urlpatterns = format_suffix_patterns(urlpatterns, allowed=['json', 'html']) urlpatterns = format_suffix_patterns(urlpatterns, allowed=['json', 'html'])
When using `format_suffix_patterns`, you must make sure to add the `'format'` keyword argument to the corresponding view. For example: When using `format_suffix_patterns`, you must make sure to add the `'format'` keyword argument to the corresponding views. For example:
@api_view(('GET',)) @api_view(('GET', 'POST'))
def api_root(request, format=None): def api_root(request, format=None):
# do stuff... # do stuff...
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment