Loading fixtures inside a transaction

14 views
Skip to first unread message

th...@copperleaf.com

unread,
Aug 3, 2016, 7:42:23 PM8/3/16
to Django users
Is it possible to have the `loaddata` manage command use a transaction when loading a fixture?

Simon Charette

unread,
Aug 4, 2016, 2:39:01 AM8/4/16
to Django users
I believe it already does[1] as it is a requirement to support forward references.

Cheers,
Simon

[1] https://github.com/django/django/blob/5c63b3e5a797102d915e1683971517f747a28013/django/core/management/commands/loaddata.py#L68-L69
Reply all
Reply to author
Forward
0 new messages