Hi
I am able to create the field through in postgres.
When i execute that sql statement :-
CREATE TABLE "visit_visit_research" (
"id" serial NOT NULL PRIMARY KEY,
"visit_id" integer NOT NULL REFERENCES "visit_visit" ("id") DEFERRABLE INITIALLY DEFERRED,
"research_id" integer NOT NULL REFERENCES "www_researchprotocol" ("id") DEFERRABLE INITIALLY DEFERRED,
UNIQUE ("visit_id", "research_id")
)
;
I get this :-
psql:db/2012-03-24_research_protocol.sql:7: NOTICE: CREATE TABLE will create implicit sequence "visit_visit_research_id_seq" for serial column "
visit_visit_research.id"
psql:db/2012-03-24_research_protocol.sql:7: NOTICE: CREATE TABLE / PRIMARY KEY will create implicit index "visit_visit_research_pkey" for table "visit_visit_research"
psql:db/2012-03-24_research_protocol.sql:7: NOTICE: CREATE TABLE / UNIQUE will create implicit index "visit_visit_research_visit_id_key" for table "visit_visit_research"
CREATE TABLE
So the field gets created but when i am going in django-admin in table visit i am getting an error.It is not showing up two boxes i mean the many to many widget which django displays.
This is the error
Exception Type: DatabaseError at /admin/visit/visit/20/Exception Value: column visit_visit_research.researchprotocol_id does not exist
LINE 1: ...visit_research" ON ("www_researchprotocol"."id" = "visit_vis... ^
Any help will be appreciated.
Thanks in advance.