dimagi/commcare-hq — pull request #4771 by twymer (2014-11-12 14:07:25+00:00)
Title: Fix threaded issue on syncing locations

This issue only really comes up in big migrations, but domain/site_code
are unique-together so creating two objects with empty domain and site
code values breaks the unique constraint.