Better error message when trying to use TimestampedAdminMixin on a non timestamped model

Issue #3 resolved
Jaap Roes
repo owner created an issue

I tried to use the TimestampedAdminMixin on a model that doesn't have any created/modified fields. This resulted in a somewhat confusing error: {{{ TypeError at [...] unsupported operand type(s) for -: 'datetime.datetime' and 'NoneType' }}}

The're should probably be an error earlier on if the fields do not exist.

Comments (3)

  1. Log in to comment