Re: Generic Relation: Alter Table

2007-12-21 Thread Rajesh Dhawan
On Dec 21, 3:33 am, madhav <[EMAIL PROTECTED]> wrote: > I did it, but its not showing up the new field(which is "summary" in > my case) in the Create Statement, nor is at the Alter table part. That's expected behaviour for generic objects (sorry, that I didn't mention this in my earlier post).

Re: Generic Relation: Alter Table

2007-12-21 Thread madhav
I did it, but its not showing up the new field(which is "summary" in my case) in the Create Statement, nor is at the Alter table part. On Dec 20, 7:47 pm, Rajesh Dhawan <[EMAIL PROTECTED]> wrote: > On second thoughts, "sqlall" might be better since it prints out > indexes, initial_data, etc: > >

Re: Generic Relation: Alter Table

2007-12-20 Thread Rajesh Dhawan
On second thoughts, "sqlall" might be better since it prints out indexes, initial_data, etc: python manage.py sqlall --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "Django users" group. To post to this group, sen

Re: Generic Relation: Alter Table

2007-12-20 Thread Rajesh Dhawan
Hi, > And I am using a class called Book which will be having the summary > field mentioned above. So to alter the Book model at the database > level, i need to run the alter table for Book. I dont know the > equivalent sql to create a generic relation column in the table. Just run "python manag

Generic Relation: Alter Table

2007-12-20 Thread madhav
as a part of using generic relations, i got struck up at one point, where i need to run the sql to have a field: summary = generic.GenericRelation(Summary) where Summary is a class defined as: class Summary(models.Model): id = models.AutoField(primary_key=True) content_type = models.Fore