0.38.0
get_or_create now supports more complex where clauses. For example:
row = await Band.objects().get_or_create(
(Band.name == 'Pythonistas') & (Band.popularity == 1000)
).run()And you can find out whether the row was created or not using row._was_created.
Thanks to @wmshort for reporting this issue.