Re: Django help required with non foreign key relations

2012-04-23 Thread akaariai
On Apr 23, 8:15 am, Aditya Sriram M wrote: > Ohh this looks little promising.. > > However, > >    1. I need a few cols of table1 and few from table 2 to be displayed. How >    can we achieve that at the .filter() level? and >    2. At the view level like using the list_display () for displaying t

Re: Django help required with non foreign key relations

2012-04-22 Thread Aditya Sriram M
Ohh this looks little promising.. However, 1. I need a few cols of table1 and few from table 2 to be displayed. How can we achieve that at the .filter() level? and 2. At the view level like using the list_display () for displaying them in the Admin interface On Sunday, 22 April 2

Re: Django help required with non foreign key relations

2012-04-22 Thread akaariai
On Apr 22, 1:31 pm, Aditya Sriram M wrote: > File myapp/models.py has this sample code.. > > from django.db import models > > # model for 'user' table in database oracle_dbuser1:user > class User(models.Model): >     . . . >     customerid = models.BigIntegerField() > > # model for 'customer' tabl

Django help required with non foreign key relations

2012-04-22 Thread Aditya Sriram M
File myapp/models.py has this sample code.. from django.db import models # model for 'user' table in database oracle_dbuser1:user class User(models.Model): . . . customerid = models.BigIntegerField() # model for 'customer' table in database oracle_dbuser2:customer # Note that there is