Re: sql for Many To Many Field in existing django model

2012-03-24 Thread Nikhil Verma
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

Re: sql for Many To Many Field in existing django model

2012-03-22 Thread Joel Goldstick
On Thu, Mar 22, 2012 at 6:55 AM, Nikhil Verma wrote: > Hi All > > I want to add a ManyToManyField  to an existing django model. > > I can use sql app_name and see the statement. > > My models > > Class Visit(modes.Model): >   x = something >   . .. >   .. and so on >  # finally Here i want

sql for Many To Many Field in existing django model

2012-03-22 Thread Nikhil Verma
Hi All I want to add a ManyToManyField to an existing django model. I can use sql app_name and see the statement. My models Class Visit(modes.Model): x = something . .. .. and so on # finally Here i want to add that field research protol research_protocol = models.ManyToMa