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 <willyh...@gmail.com> wrote: > 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_id(PK), country_name, gdp, gdp_growth, income_per_capita) >> >> Product(product_id(PK), product_name, country_id(FK), imports_volume) >> >> Since I have to show imports_volume for the same product in each country, >> I am stumped on how to design the db. >> >> >> > > -- > You received this message because you are subscribed to the Google Groups > "Django users" group. > To unsubscribe from this group and stop receiving emails from it, send an > email to django-users+unsubscr...@googlegroups.com. > To post to this group, send email to django-users@googlegroups.com. > Visit this group at http://groups.google.com/group/django-users. > To view this discussion on the web visit > https://groups.google.com/d/msgid/django-users/03becba4-4127-4bac-b76d-c47e2cbd7b74%40googlegroups.com. > > For more options, visit https://groups.google.com/d/optout. -- >From this perspective it is natural that anarchism be marked by spontaneity, differentiation, and experimentation that it be marked by an expressed affinity with chaos, if chaos is understood to be what lies outside or beyond the dominant game or system. Because of the resistance to definition and categorisation, the anarchist principle has been variously interpreted as, rather than an articulated position, “a moral attitude, an emotional climate, or even a mood”. This mood hangs in dramatic tension between utopian hope or dystopian nihilism... ----- http://zuihitsu.org/godspeed-you-black-emperor-and-the-politics-of-chaos -- You received this message because you are subscribed to the Google Groups "Django users" group. To unsubscribe from this group and stop receiving emails from it, send an email to django-users+unsubscr...@googlegroups.com. To post to this group, send email to django-users@googlegroups.com. Visit this group at http://groups.google.com/group/django-users. To view this discussion on the web visit https://groups.google.com/d/msgid/django-users/CAGBeqiNSsWadO8JZ4O%2BgPXW_4XfY-OReXTDg%2BDEjJa3EEaDySA%40mail.gmail.com. For more options, visit https://groups.google.com/d/optout.