bugfix for py3 on raise

when running django-relationships on py3 environment this bug occurs on template tags uses