That makes sense, I used this approach as it was similar to the one used by Django, the decorator might be a better approach. Will take a look