the registry_code should be checked so we don't try to trigger this code on a wrong registry (here the wrong registry is "account"):
/templates/registration/registration_form.html
<!-- Registry specific registration form -->
{% with "registration/registration_form_"|add:registry_code|add:".html" as template_name %}
{% include template_name %}
{% endwith %}
the registry_code should be checked so we don't try to trigger this code on a wrong registry (here the wrong registry is "account"):
/templates/registration/registration_form.html