Re: Data migration script populating db table - testing

2015-03-23 Thread Filipe Ximenes
One way to do it is to run all operations, don't call "save" and verify "manually" if objects are correct. I don't know about other methods, but if someone else does it would be great. On Sun, Mar 22, 2015 at 6:29 AM, Murthy Sandeep wrote: > Hi > > I have created an

Data migration script populating db table - testing

2015-03-22 Thread Murthy Sandeep
Hi I have created an data migration script for populating one of app db tables with data from a JSON file. First I ran python manage.py makemigrations --empty TPP_App (‘TPP_App’ is the name of my app) and then I added a custom method called populate_db which will use bulk_create to add