Skip to content

Commit

Permalink
fix location and ethnicgroup export
Browse files Browse the repository at this point in the history
  • Loading branch information
yomguy committed Jan 12, 2015
1 parent e5f36c9 commit 13d36cf
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions telemeta/models/media.py
Expand Up @@ -364,8 +364,8 @@ def to_dict_with_more(self):
metadata = self.to_dict()
metadata['url'] = get_full_url(reverse('telemeta-collection-detail', kwargs={'public_id':self.pk}))
metadata['doc_status'] = self.document_status()
metadata['countries'] = ';'.join(self.main_countries())
metadata['ethnic_groups'] = ';'.join(self.ethnic_groups())
metadata['countries'] = ';'.join([location.name for location in self.main_countries()])
metadata['ethnic_groups'] = ';'.join([group.value for group in self.ethnic_groups()])
metadata['last_modification_date'] = unicode(self.last_revision().time)
metadata['computed_duration'] = unicode(self.computed_duration())
metadata['computed_size'] = unicode(self.computed_size())
Expand Down

0 comments on commit 13d36cf

Please sign in to comment.