ModelEncoder always hits an instance, fail if not?
Closed this issue · 2 comments
terjekv commented
Whenever we call history/DjangoJSONModelEncoder
we hit an instance. However, we still cater to the idea that we may not. This leads to problematic testing. Should we fail instead?
https://github.com/terjekv/mreg/blob/7c575e6d572723009b9c9f9f26dc4a8da3ed9ecf/mreg/api/v1/history.py#L18