As noted in #80, always raising an error when there are no active terms of service is a little overactive.
This PR adjusts when NoActiveTermsOfService is thrown, and when settings.DEBUG is True, only raises a warning instead. This should help when building containers for development.
As noted in #80, always raising an error when there are no active terms of service is a little overactive.
This PR adjusts when
NoActiveTermsOfService
is thrown, and whensettings.DEBUG
isTrue
, only raises a warning instead. This should help when building containers for development.Tests included for both
settings.DEBUG
states.