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 =
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
2 matches
Mail list logo