Re: database design problem.

2014-03-15 Thread Lachlan Musicman
I would make the imports model an "intermediate model" - see here: https://docs.djangoproject.com/en/1.6/topics/db/models/#extra-fields-on-many-to-many-relationships L. On 16 March 2014 09:41, willy Hakizimana wrote: > Thank you guys so much. You guys rock! > > > On Saturday, March 15, 2014 10:

Re: database design problem.

2014-03-15 Thread willy Hakizimana
Thank you guys so much. You guys rock! On Saturday, March 15, 2014 10:38:03 AM UTC-5, willy Hakizimana wrote: > > First of all, this community is amazing at how fast questions are > answered. I have learned so much. > > > I am designing an app with models that look like this. > > Country(country_

Re: database design problem.

2014-03-15 Thread Alvin Lindstam
Actually, the Django term for this is "through". Not via. See https://docs.djangoproject.com/en/1.6/topics/db/models/#extra-fields-on-many-to-many-relationships on how to specify the intermediate table to be used in many-to-many relationships. Den lördagen den 15:e mars 2014 kl. 18:01:02 UTC

Re: database design problem.

2014-03-15 Thread Larry Martell
On Sat, Mar 15, 2014 at 9:38 AM, willy Hakizimana wrote: > First of all, this community is amazing at how fast questions are answered. > I have learned so much. > > > I am designing an app with models that look like this. > > Country(country_id(PK), country_name, gdp, gdp_growth, income_per_capita