Browse Source

Fix URL_VALIDATOR_USER_AGENT import

master
Patryk Zawadzki 14 years ago
parent
commit
8a1b196aa9
1 changed files with 2 additions and 1 deletions
  1. 2
    1
      oscar/forms/fields.py

+ 2
- 1
oscar/forms/fields.py View File

@@ -1,4 +1,5 @@
1 1
 from django.forms import fields
2
+from django.core.validators import URL_VALIDATOR_USER_AGENT
2 3
 
3 4
 from oscar.core import validators
4 5
 
@@ -9,7 +10,7 @@ class ExtendedURLField(fields.URLField):
9 10
     """
10 11
 
11 12
     def __init__(self, max_length=None, min_length=None, verify_exists=False,
12
-            validator_user_agent=validators.URL_VALIDATOR_USER_AGENT, *args, **kwargs):
13
+            validator_user_agent=URL_VALIDATOR_USER_AGENT, *args, **kwargs):
13 14
         # intentionally skip one step when calling super()
14 15
         super(fields.URLField, self).__init__(max_length, min_length, *args,
15 16
                                        **kwargs)

Loading…
Cancel
Save