With django 1.0.2 and Python 2.5, when I use the DateField.input_formats keyword, I get a __init__() error with the unexpected keyword argument 'input_formats' . When I look in the __init__ file, I do not see input_formats as one of the valid keyword arguments.
I thought input_formats was long enough for it to be there. Is input_formats keyword not supported in this configuration? If not, how can I get an updated __init__ that supports it? Thanks.
As stated in the comment, I added the code below. I suspect the problem is that I am confusing the DateField form and the DateField model, but I would be happy if someone confirms this.
from django.db import models class Payment(models.Model): date_paid = models.DateField(blank=True, db_index=True, input_formats=['%m/%d/%y'])
Mitch source share