aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorTom Christie2012-10-05 15:37:50 +0100
committerTom Christie2012-10-05 15:37:50 +0100
commit272fddc9526f09e4904af7c282edd003b12be55a (patch)
tree08f7f98cc3fd589db2f672c35ad649314d0a195e
parent9ac6fcf19cfe8ae8c43790fdf25693316fd1c6d8 (diff)
downloaddjango-rest-framework-272fddc9526f09e4904af7c282edd003b12be55a.tar.bz2
Fix bug in format suffix patterns
-rw-r--r--docs/index.md1
-rw-r--r--rest_framework/urlpatterns.py2
2 files changed, 1 insertions, 2 deletions
diff --git a/docs/index.md b/docs/index.md
index 9ec25025..b51963c3 100644
--- a/docs/index.md
+++ b/docs/index.md
@@ -59,7 +59,6 @@ Note that the base URL can be whatever you want, but you must include `rest_fram
## Quickstart
-
## Tutorial
The tutorial will walk you through the building blocks that make up REST framework. It'll take a little while to get through, but it'll give you a comprehensive understanding of how everything fits together, and is highly recommended reading.
diff --git a/rest_framework/urlpatterns.py b/rest_framework/urlpatterns.py
index 7d09651a..7640f45d 100644
--- a/rest_framework/urlpatterns.py
+++ b/rest_framework/urlpatterns.py
@@ -8,7 +8,7 @@ def format_suffix_patterns(urlpatterns, suffix_required=False, suffix_kwarg=None
include a '.format' suffix. Retains urlpattern ordering.
"""
suffix_kwarg = suffix_kwarg or api_settings.FORMAT_SUFFIX_KWARG
- suffix_pattern = '.(?P<%s>[a-z]+)$' % suffix_kwarg
+ suffix_pattern = '\.(?P<%s>[a-z]+)$' % suffix_kwarg
ret = []
for urlpattern in urlpatterns: