Jaymon / prom

A PostgreSQL or SQLite orm for Python
MIT License
22 stars 4 forks source link

Prom.Model modify #61

Closed Jaymon closed 6 years ago

Jaymon commented 6 years ago

ugh, I can't tell you how many times this has annoyed me, prom.Model.modify takes both fields and fields_kwargs, so if you override it you have to call make_dict() yourself.

I think this should be changed so modify() will compress the values down to fields and then call another method like modify_fields (which currently exists but should be repurposed. That would make it so you don't every override modify but instead override modify_fields so you never have to worry about merging the fields and fields_kwargs variables.