"""Admin for parrot.gallery"""
from django.contrib import admin
from django.utils.translation import ugettext_lazy as _

from socialaggregator.models import Feed
from socialaggregator.models import Aggregator
from socialaggregator.models import Ressource


class FeedAdmin(admin.ModelAdmin):
    pass

admin.site.register(Feed, FeedAdmin)


class AggregatorAdmin(admin.ModelAdmin):
    pass

admin.site.register(Aggregator, AggregatorAdmin)


class RessourceAdmin(admin.ModelAdmin):
    pass

admin.site.register(Ressource, RessourceAdmin)

"""Admin for parrot.gallery"""
from django.contrib import admin
from django.utils.translation import ugettext_lazy as _

from socialaggregator.models import Feed
from socialaggregator.models import Aggregator
from socialaggregator.models import Ressource


class FeedAdmin(admin.ModelAdmin):
    pass

admin.site.register(Feed, FeedAdmin)


class AggregatorAdmin(admin.ModelAdmin):
    pass

admin.site.register(Aggregator, AggregatorAdmin)


class RessourceAdmin(admin.ModelAdmin):
    date_hierarchy = 'ressource_date'
    list_display = ('name', 'author', 'language', 'social_type', 'query',
                    'ressource_date', 'activate')

    ordering = ['-creation_date', 'query']
admin.site.register(Ressource, RessourceAdmin)

add some infos in RessourceAdmin list view