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())