diff --git a/AUTHORS b/AUTHORS
index fb32b97..8af7ffb 100644
a
|
b
|
answer newbie questions, and generally made Django that much better:
|
83 | 83 | Arvis Bickovskis <viestards.lists@gmail.com> |
84 | 84 | Aryeh Leib Taurog <http://www.aryehleib.com/> |
85 | 85 | A S Alam <aalam@users.sf.net> |
| 86 | Ashish Nitin Patil <ashishnitinpatil@gmail.com> |
86 | 87 | Asif Saif Uddin <auvipy@gmail.com> |
87 | 88 | atlithorn <atlithorn@gmail.com> |
88 | 89 | Audrey Roy <http://audreymroy.com/> |
diff --git a/django/urls/converters.py b/django/urls/converters.py
index cc22f33..9172dc9 100644
a
|
b
|
from django.utils import lru_cache
|
4 | 4 | |
5 | 5 | |
6 | 6 | class IntConverter: |
7 | | regex = '[0-9]+' |
| 7 | regex = '-?[0-9]+' |
8 | 8 | |
9 | 9 | def to_python(self, value): |
10 | 10 | return int(value) |
diff --git a/tests/urlpatterns/tests.py b/tests/urlpatterns/tests.py
index b200aed..83c5f07 100644
a
|
b
|
class ConverterTests(SimpleTestCase):
|
77 | 77 | return x |
78 | 78 | |
79 | 79 | test_data = ( |
80 | | ('int', {'0', '1', '01', 1234567890}, int), |
| 80 | ('int', {'0', '1', '01', 1234567890, '-1', '-01', -1}, int), |
81 | 81 | ('str', {'abcxyz'}, no_converter), |
82 | 82 | ('path', {'allows.ANY*characters'}, no_converter), |
83 | 83 | ('slug', {'abcxyz-ABCXYZ_01234567890'}, no_converter), |
… |
… |
class ConverterTests(SimpleTestCase):
|
103 | 103 | |
104 | 104 | def test_nonmatching_urls(self): |
105 | 105 | test_data = ( |
106 | | ('int', {'-1', 'letters'}), |
| 106 | ('int', {'letters', '123mixed'}), |
107 | 107 | ('str', {'', '/'}), |
108 | 108 | ('path', {''}), |
109 | 109 | ('slug', {'', 'stars*notallowed'}), |