else:
return _('none')
+
class Meta(MetaCore):
db_table = 'media_items'
permissions = (("can_play_all_items", "Can play all media items"),
return True
return False
+ @property
+ def sorted_children(self):
+ return self.children.order_by('code')
+
def computed_duration(self):
duration = Duration()
for child in self.children.all():
return True
return False
+ @property
+ def sorted_children(self):
+ return self.children.order_by('code')
+
def computed_duration(self):
duration = Duration()
for child in self.children.all():
<div class="extraInfos">
<h4><img src="{{ STATIC_URL }}telemeta/images/item_title.png" style="vertical-align:middle" />{{resource.children_type|capitalize }} </h4>
- {% with resource.children.all as children %}
+ {% with resource.sorted_children.all as children %}
{% include "telemeta/inc/children_list.html" %}
{% endwith %}
</div>