Re: problem with models and foreign keys

2008-07-01 Thread KevinTran
existant table, if you use the sqlall command > instead you will see that the tables are altered to add the > constraint. > > On Jul 1, 1:57 am, KevinTran <[EMAIL PROTECTED]> wrote: > > > Hi I'm currently reading Learning Website Development with Django and > >

problem with models and foreign keys

2008-07-01 Thread KevinTran
Hi I'm currently reading Learning Website Development with Django and I'm having a problem with models. Here is my models.py: from django.db import models from django.contrib.auth.models import User class Link(models.Model): url = models.URLField(unique=True) class