How do I mock creation of an object ?
so = ServiceOrder.objects.create(
# data=data,
)
new_id = so.id
I don’t want the object created but instead to show me the SQL that its going to generate and exit.
I have the DJDT toolbar.
How do I mock creation of an object ?
so = ServiceOrder.objects.create(
# data=data,
)
new_id = so.id
I don’t want the object created but instead to show me the SQL that its going to generate and exit.
I have the DJDT toolbar.