REC-154 modofocation after first review: docstring, move logic, syntax, use Django to append parameter & use regex for the get_hash_for method