diff options
| author | jgomezb | 2013-11-14 09:22:07 +0100 | 
|---|---|---|
| committer | jgomezb | 2013-11-14 09:22:07 +0100 | 
| commit | 6be62bc1d77f77978847584c358c7c00c34c0992 (patch) | |
| tree | 0e522f46a03cbdc38c6f739c6d1a6d9ad19c4009 /rest_framework/urlpatterns.py | |
| parent | 134ffd96a14559f3a1ff4e5210c8718fb4bff9b1 (diff) | |
| download | django-rest-framework-6be62bc1d77f77978847584c358c7c00c34c0992.tar.bz2 | |
Update urlpatterns.py
Allow numbers in format extension.
Diffstat (limited to 'rest_framework/urlpatterns.py')
| -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 d9143bb4..0ff137b0 100644 --- a/rest_framework/urlpatterns.py +++ b/rest_framework/urlpatterns.py @@ -57,6 +57,6 @@ def format_suffix_patterns(urlpatterns, suffix_required=False, allowed=None):              allowed_pattern = '(%s)' % '|'.join(allowed)          suffix_pattern = r'\.(?P<%s>%s)$' % (suffix_kwarg, allowed_pattern)      else: -        suffix_pattern = r'\.(?P<%s>[a-z]+)$' % suffix_kwarg +        suffix_pattern = r'\.(?P<%s>[a-z0-9]+)$' % suffix_kwarg      return apply_suffix_patterns(urlpatterns, suffix_pattern, suffix_required) | 
