我有一个模型,当我使用时会抛出错误python manage.py syncdb
在这一行createdAt = models.DateTimeField(auto_add_now=True)
,错误是
File "/home/vaibhav/TRAC/coupon-rest-api/couponRestApi/couponRestApiApp/models.py", line 18, in tags
createdAt = models.DateTimeField(auto_add_now=True)
File "/usr/local/lib/python2.7/dist-packages/django/db/models/fields/__init__.py", line 660, in __init__
Field.__init__(self, verbose_name, name, **kwargs)
TypeError: __init__() got an unexpected keyword argument 'auto_add_now'
我在这里做错了什么?