On Thu, 2006-05-18 at 08:49 -0300, Douglas Campos wrote: > I'm working at an audit system in django. > > There's a stupid question lying: Can I make models that use foreign > keys from other apps? > > like this > > myproject/app1/models.py: > Class AnyThing(models.Model): > a = models.IntegerField(blah, blah) > > myproject/app2/models.py: > Class AnyThang(models.Model): > b = models.Foreignkey(Anything) > > any ideas? I didn't found nothing related in the docs....
Yes, that's possible. Just for reference, since the Django documentation is obviously perfect (:-) ), this is documented here: http://www.djangoproject.com/documentation/model_api/#models-across-files Regards, Malcolm --~--~---------~--~----~------------~-------~--~----~ 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 [EMAIL PROTECTED] For more options, visit this group at http://groups.google.com/group/django-users -~----------~----~----~----~------~----~------~--~---