Guillermo, It is possible to have a model in one application have a foreign key to another application as of Django 1.0.
From: http://docs.djangoproject.com/en/dev/ref/models/fields/#django.db.models.ForeignKey ------------------- To refer to models defined in another application, you can explicitly specify a model with the full application label. For example, if the Manufacturer model above is defined in another application called production, you'd need to use: class Car(models.Model): manufacturer = models.ForeignKey('production.Manufacturer') This sort of reference can be useful when resolving circular import dependencies between two applications. ------------------- Hopefully this is what you need. -David On Sep 26, 12:07 pm, Guillermo <guillermo.lis...@googlemail.com> wrote: > Hi all, > > I have one app with a Project model and another app with a TodoItem > model. How can I declare Project to be the foreign key of TodoItem? > Or, rather, how can I make TodoItem accept an arbitrary model as > foreign key? > > Regards, > > Guillermo --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Django users" group. To post to this group, send email to django-users@googlegroups.com To unsubscribe from this group, send email to django-users+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/django-users?hl=en -~----------~----~----~----~------~----~------~--~---