Added get_by_fields() to model.py