Re: How to access SplitDateTime field elements in template

2008-12-23 Thread rtmie
I have found a workaroud to this, by using the AdminSplitDateTime widget and then rendering field in the template, the right thing happens: in form code: from django.contrib.admin import widgets as adminWidgets class Dummy1Form(forms.ModelForm): name = forms.CharField(max_length = 100)

How to access SplitDateTime field elements in template

2008-12-22 Thread rtmie
I have a form with a SplitDateTimeField and cannot figure out how to access the individual date and time elements in it from my template: class Dummy1(models.Model): name = models.CharField(max_length = 100) created = models.DateTimeField(default = datetime.datetime.now()) class Dummy