Don’t have service model inherit from dict

Inheriting from `dict` has some unexpected side effects that don’t
happen with plain object. The one we want to avoid right now is that
a dict doesn’t seem to implement `__dict__` in a normal way, which
is required by `werkzeug.utils.cached_property`.
This commit is contained in:
Chris Hill-Scott
2018-10-30 14:55:00 +00:00
parent 1e6b79a546
commit b48305c50d
3 changed files with 21 additions and 7 deletions
@@ -7,7 +7,7 @@
</h1>
<p>
You can only send {{ current_service.message_limit }} messages per day
{%- if current_service.restricted %}
{%- if current_service.trial_mode %}
in <a href="{{ url_for('.using_notify')}}#trial-mode">trial mode</a>
{%- endif -%}
.