Finally getting back to providing these convenience methods for,
Getting an object by a field value, e.g. name="the name" or versionName="the version name" or etc
Getting or Creating an object by a field value, e.g. name="the name" and if one doesn't exist, create it
@admacdonald1 you will recognize your suggested code for the get_resource_by() method. I've also attempted a get_or_create_by() and have included some sample code that uses it - see crud_project.py, crud_version.py, and update_version_settings.py (all in the .../examples/client folder).
I set the version for this proposal to v1.1.0 since it's a minor improvement to the actual interface (as opposed to a simple fix).
Finally getting back to providing these convenience methods for,
@admacdonald1 you will recognize your suggested code for the get_resource_by() method. I've also attempted a get_or_create_by() and have included some sample code that uses it - see crud_project.py, crud_version.py, and update_version_settings.py (all in the .../examples/client folder).
I set the version for this proposal to v1.1.0 since it's a minor improvement to the actual interface (as opposed to a simple fix).
Let me know your thoughts.