Source

noodle-bucket / mercurial_data / admin.py

Full commit
from django.contrib import admin
from noodlebucket.mercurial_data.models import Changeset, Repository

class RepositoryAdmin(admin.ModelAdmin):
    search_fields = ('user_name', 'repo_name')
    list_display = ('repo_name', 'user_name', 'parent', 'refreshed')
    list_filter = ('refreshed', 'created', 'updated')

admin.site.register(Repository, RepositoryAdmin)

class ChangesetAdmin(admin.ModelAdmin):
    list_display = ('cset_hash', 'repo', 'cset_author', 'cset_parent1', 'cset_parent2')
    list_filter = ('created', 'updated')

admin.site.register(Changeset, ChangesetAdmin)