Source

noodle-bucket / mercurial_data / admin.py

Full commit
1
2
3
4
5
6
7
8
9
from django.contrib import admin
from noodlebucket.mercurial_data.models import Repository

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

admin.site.register(Repository, RepositoryAdmin)