diff options
| author | Ian Kelly <ian.g.kelly@gmail.com> | 2007-09-14 18:12:36 +0000 |
|---|---|---|
| committer | Ian Kelly <ian.g.kelly@gmail.com> | 2007-09-14 18:12:36 +0000 |
| commit | 93f60163e87036dac3dbfbbe09bdd7c7c195dd67 (patch) | |
| tree | 2596452fcadceb2e184a51b6524e0c28408950df /django/db/models/fields/__init__.py | |
| parent | 933cda3749865b0c776a21b39076c500ddcbe12f (diff) | |
Fixed #5218: Made Oracle create autoinc triggers using the correct name
of the AutoField column rather than always assume "ID".
git-svn-id: http://code.djangoproject.com/svn/django/trunk@6195 bcc190cf-cafb-0310-a4f2-bffc1f526a37
Diffstat (limited to 'django/db/models/fields/__init__.py')
| -rw-r--r-- | django/db/models/fields/__init__.py | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/django/db/models/fields/__init__.py b/django/db/models/fields/__init__.py index 3792a30a88..34d998c219 100644 --- a/django/db/models/fields/__init__.py +++ b/django/db/models/fields/__init__.py @@ -433,6 +433,7 @@ class AutoField(Field): assert not cls._meta.has_auto_field, "A model can't have more than one AutoField." super(AutoField, self).contribute_to_class(cls, name) cls._meta.has_auto_field = True + cls._meta.auto_field = self def formfield(self, **kwargs): return None |
