Michael Hall has proposed merging lp:~mhall119/loco-directory/fixes-612949 into 
lp:loco-directory.

Requested reviews:
  loco-directory-dev (loco-directory-dev)
Related bugs:
  #612949 teams listed multiple times
  https://bugs.launchpad.net/bugs/612949

-- 
https://code.launchpad.net/~mhall119/loco-directory/fixes-612949/+merge/41989
Your team loco-directory-dev is requested to review the proposed merge of 
lp:~mhall119/loco-directory/fixes-612949 into lp:loco-directory.
=== modified file 'loco_directory/teams/models.py'
--- loco_directory/teams/models.py	2010-09-30 11:17:29 +0000
+++ loco_directory/teams/models.py	2010-11-27 01:36:14 +0000
@@ -32,7 +32,7 @@
     
     @property
     def related_teams(self):
-        return flat_list([list(a.related_teams) for a in self.related_countries])
+        return set(flat_list([list(a.related_teams) for a in self.related_countries]))
 
 class Country(models.Model):
     name = models.TextField(_("Name"), max_length=100)

_______________________________________________
Mailing list: https://launchpad.net/~loco-directory-dev
Post to     : [email protected]
Unsubscribe : https://launchpad.net/~loco-directory-dev
More help   : https://help.launchpad.net/ListHelp

Reply via email to