diff --git a/scripts/fabfile.py b/scripts/fabfile.py index 9211c27..4acf731 100644 --- a/scripts/fabfile.py +++ b/scripts/fabfile.py @@ -29,13 +29,12 @@ def clone_remote_db(dbtype='sqlite'): # Dump remote data and download the file with cd(APP_DIR): with prefix('source %s' % VIRTUALENV_DIR): - run('python manage.py dumpdata --indent 1 contenttypes auth stages > epcstages.json') + run('python manage.py dumpdata --natural-foreign --indent 1 -e auth.Permission auth stages > epcstages.json') get('epcstages.json', '.') # Recreate a fresh DB with downloaded data - local("python ../manage.py syncdb --noinput") - local("python ../manage.py flush --noinput") local("python ../manage.py migrate") + local("python ../manage.py flush --noinput") local("python ../manage.py loaddata epcstages.json")