Changed "date" column to "start_date"--Oracle won't name columns with reserved keywords.
git-svn-id: http://code.djangoproject.com/svn/django/trunk@9764 bcc190cf-cafb-0310-a4f2-bffc1f526a37
This commit is contained in:
parent
547649f962
commit
b120c74032
|
@ -46,7 +46,7 @@ class Inventory(models.Model):
|
|||
|
||||
class Event(models.Model):
|
||||
band = models.ForeignKey(Band)
|
||||
date = models.DateField(blank=True, null=True)
|
||||
start_date = models.DateField(blank=True, null=True)
|
||||
start_time = models.TimeField(blank=True, null=True)
|
||||
description = models.TextField(blank=True)
|
||||
link = models.URLField(blank=True)
|
||||
|
|
|
@ -41,7 +41,7 @@ class AdminFormfieldForDBFieldTests(TestCase):
|
|||
return ff
|
||||
|
||||
def testDateField(self):
|
||||
self.assertFormfield(models.Event, 'date', widgets.AdminDateWidget)
|
||||
self.assertFormfield(models.Event, 'start_date', widgets.AdminDateWidget)
|
||||
|
||||
def testDateTimeField(self):
|
||||
self.assertFormfield(models.Member, 'birthdate', widgets.AdminSplitDateTime)
|
||||
|
@ -88,7 +88,7 @@ class AdminFormfieldForDBFieldTests(TestCase):
|
|||
filter_vertical=['members'])
|
||||
|
||||
def testFormfieldOverrides(self):
|
||||
self.assertFormfield(models.Event, 'date', forms.TextInput,
|
||||
self.assertFormfield(models.Event, 'start_date', forms.TextInput,
|
||||
formfield_overrides={'widget': forms.TextInput})
|
||||
|
||||
def testFieldWithChoices(self):
|
||||
|
|
Loading…
Reference in New Issue