1
0
mirror of https://github.com/django/django.git synced 2025-11-07 07:15:35 +00:00

Refs #24245 -- Added introspection for database defaults on Oracle.

This commit is contained in:
Mariusz Felisiak
2016-11-30 17:21:57 +01:00
committed by Tim Graham
parent 6f43b2b8a5
commit e17f40f4b5
6 changed files with 12 additions and 10 deletions

View File

@@ -1,6 +1,5 @@
import re
import warnings
from collections import namedtuple
from django.db.backends.base.introspection import (
BaseDatabaseIntrospection, FieldInfo, TableInfo,
@@ -8,7 +7,6 @@ from django.db.backends.base.introspection import (
from django.utils.deprecation import RemovedInDjango21Warning
field_size_re = re.compile(r'^\s*(?:var)?char\s*\(\s*(\d+)\s*\)\s*$')
FieldInfo = namedtuple('FieldInfo', FieldInfo._fields + ('default',))
def get_field_size(name):