mirror of
https://github.com/django/django.git
synced 2025-06-05 11:39:13 +00:00
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.
This commit is contained in:
parent
bf9d5eff4c
commit
34340517fc
@ -1,7 +1,8 @@
|
|||||||
from django.db import models
|
from django.db import models
|
||||||
|
|
||||||
class Event(models.Model):
|
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):
|
class Parent(models.Model):
|
||||||
name = models.CharField(max_length=128)
|
name = models.CharField(max_length=128)
|
||||||
|
Loading…
x
Reference in New Issue
Block a user