django 1.7 で django-timezone-field を使用するモデル オブジェクトの 1 つで移行を実行できませんでした
ここで解決策を見つけました: https://github.com/mfogel/django-timezone-field/issues/12
この問題を修正した分岐バージョンの django-time-field をインストールしました: https://github.com/mfogel/django-timezone-field/issues/12
私は今エラーを受け取ります: unicode object has no attribute zone
そして'unicode' object has no attribute 'localize'
私はこのようにフィールドを呼び出しています:timezone.activate(customer.time_zone.zone)
私のモデルは次のようになります。
from timezone_field import TimeZoneField
class Customer(models.Model):
user = models.OneToOneField(User, related_name="customer")
time_zone = TimeZoneField()
このフォークがうまくいかない場合、どうすれば移行できますか? タイムゾーンフィールド以外に解決策はありますか?