Source

gnocchi-ask / gnocchi / ask / admin.py

The default branch has multiple heads

from django.contrib import admin

from gnocchi.ask import models

class QuestionAdmin(admin.ModelAdmin):
    list_display = ('question', 'user', 'created', 'accepted', 'visible',)
    list_filter = ('user', 'visible',)
    search_fields = ('question', 'content',)

admin.site.register(models.Question, QuestionAdmin)
admin.site.register(models.Response)

class VoteAdmin(admin.ModelAdmin):
    list_display = ('response', 'user', 'weight',)
    list_filter = ('user',)
admin.site.register(models.Vote, VoteAdmin)