Is it possible to use a DateTimeField from a model
definition as an
input field in a form?
I have
class MyTest(meta.Model):
Subject=meta.CharField( maxlength=90)
Description=meta.TextField()
CurrentBid=meta.IntegerField(maxlength=6,blank=True,null=Tru
e)
StartTime=meta.DateTimeField(auto_now_add=True)
EndTime= meta.DateTimeField()
BidIncrement=meta.FloatField(max_digits=6,
decimal_places=2)
mytests=meta.ForeignKey(User)
and in a form I have
....
....
<tr >
<td width="2%"></td>
<td width="16%"><strong>End
time</strong></td>
<td
width="82%">{{form.EndTime}}</td>
</tr>
..
...
but there is no input field in the form for EndTime
Why?
Thank you.
L.
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the
Google Groups "Django users" group.
To post to this group, send email to django-users googlegroups.com
To unsubscribe from this group, send email to
django-users-unsubscribe googlegroups.com
For more options, visit this group at http://gr
oups.google.com/group/django-users
-~----------~----~----~----~------~----~------~--~---
|