Changeset 563

Show
Ignore:
Timestamp:
02/16/10 02:09:52 (5 months ago)
Author:
olivier
Message:

Fix MediaCollection?.ethnic_groups()

Files:
1 modified

Legend:

Unmodified
Added
Removed
  • trunk/telemeta/models/media.py

    r561 r563  
    168168                groups.append(item.ethnic_group) 
    169169 
    170         groups.sort(self.__name_cmp)                 
     170        cmp = lambda a, b: unaccent_icmp(a.value, b.value) 
     171        groups.sort(cmp)                 
    171172 
    172173        return groups