Code

Ticket #14872: 14872.diff

File 14872.diff, 482 bytes (added by idangazit, 4 years ago)
Line 
1diff --git a/django/contrib/localflavor/za/forms.py b/django/contrib/localflavor/za/forms.py
2index f501aa0..324e336 100644
3--- a/django/contrib/localflavor/za/forms.py
4+++ b/django/contrib/localflavor/za/forms.py
5@@ -57,4 +57,5 @@ class ZAPostCodeField(RegexField):
6 
7     def __init__(self, *args, **kwargs):
8         super(ZAPostCodeField, self).__init__(r'^\d{4}$',
9-            max_length=None, min_length=None)
10+            max_length=None, min_length=None, *args, **kwargs)
11+