Using django-extensions' CreationDateTimeField with South -
i've upgraded number of
created = django.db.models.datetimefield
to
created = django_extensions.db.fields.creationdatetimefield
however, when run
./manage.py schemamigration app --auto
then
./manage.py migrate app
i get
runtimewarning: datetimefield received naive datetime (2013-05-13 11:09:45.149280) while time zone support active.
is there special need tell south django-extensions field?
this actual migration code:
def forwards(self, orm): # changing field 'advertiser.updated' db.alter_column('advertiser', 'updated', self.gf('django.db.models.fields.datetimefield')()) # changing field 'advertiser.created' db.alter_column('advertiser', 'created', self.gf('django.db.models.fields.datetimefield')()) # adding field 'campaign.created' db.add_column('advertiser_campaign', 'created', self.gf('django.db.models.fields.datetimefield')(default=datetime.datetime.now, blank=true), keep_default=false) # adding field 'campaign.updated' db.add_column('advertiser_campaign', 'updated', self.gf('django.db.models.fields.datetimefield')(default=datetime.datetime.now, blank=true), keep_default=false)
Comments
Post a Comment