diff options
| author | Ian Kelly <ian.g.kelly@gmail.com> | 2008-12-02 18:40:40 +0000 |
|---|---|---|
| committer | Ian Kelly <ian.g.kelly@gmail.com> | 2008-12-02 18:40:40 +0000 |
| commit | 4637a77ff8fedd67b3aaa98042d89e03465a82d6 (patch) | |
| tree | ea087d0d5bf6ddcaab497ad739970a8fdfea4781 /django | |
| parent | 485316017a34623bb883f57bc72417e84722912b (diff) | |
Fixed #9706: made SlugField honor max_length in Oracle, matching the other backends.
git-svn-id: http://code.djangoproject.com/svn/django/trunk@9548 bcc190cf-cafb-0310-a4f2-bffc1f526a37
Diffstat (limited to 'django')
| -rw-r--r-- | django/db/backends/oracle/creation.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/django/db/backends/oracle/creation.py b/django/db/backends/oracle/creation.py index 648c42f3ea..bff7e1bea5 100644 --- a/django/db/backends/oracle/creation.py +++ b/django/db/backends/oracle/creation.py @@ -32,7 +32,7 @@ class DatabaseCreation(BaseDatabaseCreation): 'OneToOneField': 'NUMBER(11)', 'PositiveIntegerField': 'NUMBER(11) CHECK (%(qn_column)s >= 0)', 'PositiveSmallIntegerField': 'NUMBER(11) CHECK (%(qn_column)s >= 0)', - 'SlugField': 'NVARCHAR2(50)', + 'SlugField': 'NVARCHAR2(%(max_length)s)', 'SmallIntegerField': 'NUMBER(11)', 'TextField': 'NCLOB', 'TimeField': 'TIMESTAMP', |
