pythondotorg icon indicating copy to clipboard operation
pythondotorg copied to clipboard

fixtures Deserialization and IntegrityError

Open originalankur opened this issue 12 years ago • 1 comments

find ./fixtures -name "*.json" -exec python3.3m manage.py loaddata {} ; Installed 31 object(s) from 1 fixture(s) Installed 15 object(s) from 1 fixture(s) Installed 2 object(s) from 1 fixture(s) Installed 13 object(s) from 1 fixture(s) DeserializationError: Problem installing fixture './fixtures/sitetree_menus.json': TreeItem has no field named 'access_guest' Installed 4 object(s) from 1 fixture(s) Installed 5 object(s) from 1 fixture(s) IntegrityError: Problem installing fixtures: insert or update on table "jobs_job" violates foreign key constraint "company_id_refs_id_3bee5f84" DETAIL: Key (company_id)=(2) is not present in table "companies_company". IntegrityError: Problem installing fixtures: insert or update on table "successstories_story" violates foreign key constraint "company_id_refs_id_2e129560" DETAIL: Key (company_id)=(3) is not present in table "companies_company".

originalankur avatar Mar 01 '14 12:03 originalankur

removing access_guest fixed the

DeserializationError: Problem installing fixture './fixtures/sitetree_menus.json': TreeItem has no field named 'access_guest'

Have send a pull request for the same ?

originalankur avatar Mar 01 '14 13:03 originalankur