minor fix for get_tag function in views.py