Am using sqlite3 and django version 1.0
class U(models.Model):
woid = models.ForeignKey('workorder.X')
In the workorder app I have:
class X(models.Model):
woid = models.CharField(max_length=20, primary_key=True)
When I try :
python manage.py sql ceuser
I get....
CREATE TABLE "ceuser_u" (
"id" integer NOT NULL PRIMARY KEY,
"woid_id" varchar(20) NOT NULL
)
;
As can be seen, the class ceuser does not have the FOREIGN KEY
constraint...
seen some threads abut it but no solution...
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups
"Django users" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to
[email protected]
For more options, visit this group at
http://groups.google.com/group/django-users?hl=en
-~----------~----~----~----~------~----~------~--~---