Jonxslays/wom.py

Add a `to_csv(...)` method to model classes

Jonxslays opened this issue · 1 comments

This will allow the model to be turned into a CSV string, there are some considerations for this - like what about models that contain other models - essentially everything will need to be flattened. Models with lists also may take some thought.

Method should exist on BaseModel, but can be overridden in some cases.

After further consideration, this doesn't really seem feasible as models have many different shapes some not suitable for csv. Closing.