Re: usage of GenericForeignKey ?

2006-08-07 Thread Ian Holsman
hi Dirk.you still need to put in the content-type & object-idregardsIan.On 08/08/2006, at 6:40 AM, [EMAIL PROTECTED] wrote:Hi,I have the following model defined:from django.db import modelsclass MyTest(models.Model):        obj = models.GenericForeignKey()if I let print the SQL-Create-Statements

usage of GenericForeignKey ?

2006-08-07 Thread dummy
Hi, I have the following model defined: from django.db import models class MyTest(models.Model): obj = models.GenericForeignKey() if I let print the SQL-Create-Statements for mysql-DB I get this: BEGIN; CREATE TABLE `test_mytest` ( `id` integer AUTO_INCREMENT NOT NULL PRIMARY KEY