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)
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
2 matches
Mail list logo