On Monday 13 March 2006 21:24, Adrian Holovaty wrote:
> On 3/13/06, Luke Plant <[EMAIL PROTECTED]> wrote:
> > If I create a model in my app with foreign key to the User model,
> > the SQL for creating the table doesn't add a 'REFERENCES' clause:
> > [...]
> > It works fine for intra-app relations
On 3/13/06, Luke Plant <[EMAIL PROTECTED]> wrote:
> If I create a model in my app with foreign key to the User model, the
> SQL for creating the table doesn't add a 'REFERENCES' clause:
> [...]
> It works fine for intra-app relations, just not cross-app ones.
> Is this a known issue? Is it by desi
If I create a model in my app with foreign key to the User model, the
SQL for creating the table doesn't add a 'REFERENCES' clause:
Model
-
class Test(models.Model):
user = models.ForeignKey(User, null=True)
Shell
-
django-admin.py sqlall myapp --settings='myproj.settings'
BEGIN