Fix CSRF error in DC import. Fixes #572