LoginSignup
0
0

More than 3 years have passed since last update.

djangoのadmin画面で"calendar.day_abbr"の更新に失敗する話

Posted at

djangoのadmin画面からモデルの追加・更新削除ができなくなった

画面表示や操作はできるが、更新ボタン押下時、以下の例外が発生する。

"AttributeError: 'calendar' object has no attribute 'day_abbr'"

アプリケーション名calendarが原因

結論を言うとcalendarという名前のアプリケーションが存在したため。

これが既存のcalendarとバッティングを起こして、失敗していたらしい。

クラス名で失敗ならわかるけど、アプリケーション名で失敗は想定していなかったので、原因判明にちょっと時間がかかってしまった……

0
0
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
0
0