Replaced the BaseModel.model_to_dict method with to_dict

to_dict is a copy of django.forms.models.model_to_dict method, with the
difference that it also takes into consideration the non-editable fields