rename lists_dict to to_dict, and extract it into utils/django.py