diff options
| author | Tom Christie | 2012-10-05 15:37:50 +0100 |
|---|---|---|
| committer | Tom Christie | 2012-10-05 15:37:50 +0100 |
| commit | 272fddc9526f09e4904af7c282edd003b12be55a (patch) | |
| tree | 08f7f98cc3fd589db2f672c35ad649314d0a195e /rest_framework | |
| parent | 9ac6fcf19cfe8ae8c43790fdf25693316fd1c6d8 (diff) | |
| download | django-rest-framework-272fddc9526f09e4904af7c282edd003b12be55a.tar.bz2 | |
Fix bug in format suffix patterns
Diffstat (limited to 'rest_framework')
| -rw-r--r-- | rest_framework/urlpatterns.py | 2 |
1 files changed, 1 insertions, 1 deletions
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: |
