Deleted useless function refering to Django models. No need in Flask.