Re: Fetching data from related tables

2013-05-10 Thread carlos
Hi maybe try with this app https://github.com/digi604/django-smart-selects Cheers On Thu, May 9, 2013 at 4:33 PM, Sam wrote: > I have 3 tables: Continent, Country and Story. > > Country has ForeignKey(Continent) and Story has ManyToManyField(Country, > blank=True) field. > > What I need is to

Fetching data from related tables

2013-05-09 Thread Sam
I have 3 tables: Continent, Country and Story. Country has ForeignKey(Continent) and Story has ManyToManyField(Country, blank=True) field. What I need is to get a list of countries which at least have one story belonging to it, and I need these countries grouped by continents. How can I achi