summaryrefslogtreecommitdiff
path: root/tests
diff options
context:
space:
mode:
authorAnssi Kääriäinen <akaariai@gmail.com>2012-07-15 12:24:21 +0300
committerAnssi Kääriäinen <akaariai@gmail.com>2012-07-15 12:30:27 +0300
commit34340517fc2ac324114791d784502de2a4780757 (patch)
tree506df94e4421029ca8bac71c467e9e4e6a486801 /tests
parentbf9d5eff4cd74ffc8fcd1f610587e5ad00dc7f3f (diff)
Avoid using a column named "date" in tests
Oracle can have problems with such columns. Fixed #17932 again. Thanks to Vinay Sajip for the report.
Diffstat (limited to 'tests')
-rw-r--r--tests/regressiontests/admin_changelist/models.py3
1 files changed, 2 insertions, 1 deletions
diff --git a/tests/regressiontests/admin_changelist/models.py b/tests/regressiontests/admin_changelist/models.py
index dcc343bb6a..487db50689 100644
--- a/tests/regressiontests/admin_changelist/models.py
+++ b/tests/regressiontests/admin_changelist/models.py
@@ -1,7 +1,8 @@
from django.db import models
class Event(models.Model):
- date = models.DateField()
+ # Oracle can have problems with a column named "date"
+ date = models.DateField(db_column="event_date")
class Parent(models.Model):
name = models.CharField(max_length=128)