using .fields when spanning relationships

2007-06-21 Thread Matthew Nuzum
My goal is to get a list of unique countries referenced through a table. My model has: class Country(models.Model): Abbreviation = models.CharField(maxlength = 2, primary_key=True) Country = models.CharField(maxlength = 50) class TrainingEvent(models.Model): Country =

Re: using .fields when spanning relationships

2007-06-21 Thread Matthew Nuzum
On 6/21/07, Matthew Nuzum <[EMAIL PROTECTED]> wrote: > My goal is to get a list of unique countries referenced through a > table. My model has: > Nice typo there... the subject should be: using .values when spanning relationships :-( -- Matthew Nuzum newz2000 on freenode