Commit e109872b authored by Sylvain Herlédan's avatar Sylvain Herlédan

Define default sort order for sites returned by Tastypie

parent 35ca1eca
......@@ -141,6 +141,9 @@ class Site(models.Model):
list_filter = ('owner', 'activation_time', 'deactivation_time')
save_as = True
class Meta:
ordering = ['code', 'name']
class TaggedDataset(TaggedItemBase):
"""Tag model for taggit and Dataset."""
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment