From 93f60163e87036dac3dbfbbe09bdd7c7c195dd67 Mon Sep 17 00:00:00 2001 From: Ian Kelly Date: Fri, 14 Sep 2007 18:12:36 +0000 Subject: 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 --- django/db/models/fields/__init__.py | 1 + 1 file changed, 1 insertion(+) (limited to 'django/db/models/fields/__init__.py') 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 -- cgit v1.3