...
 
Commits (5)
......@@ -164,7 +164,8 @@ class SiteResourceBase(TaggedModelResource):
authorization = DjangoAuthorization()
authentication = AnonymousGetAuthentication()
list_allowed_methods = ['get', 'post']
validation = Validation()
validation = Validation(),
ordering=['code', 'name'],
filtering = {
'code': ALL,
'name': ALL,
......
......@@ -47,7 +47,7 @@ data_mappers = {
'SAFESL500BFile':'cerbere.mapper.safeslfile.SAFESL500BFile',
'SAFESL500TDIFile':'cerbere.mapper.safeslfile.SAFESL500TDIFile',
'SAFESLWSTFile':'cerbere.mapper.safeslfile.SAFESLWSTFile',
'RSSWindSatL2File':'cerbere.mapper.rsswindsatl2file.RSSWindSatL2File',
}
inv_data_models = {v: k for k, v in data_models.iteritems()}
inv_data_mappers = {v: k for k, v in data_mappers.iteritems()}
......@@ -161,6 +161,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."""
......