Did I find the right examples for you? yes no      Crawl my project      Python Jobs

All Samples(4)  |  Call(0)  |  Derive(3)  |  Import(1)

src/g/e/getopinionated-HEAD/proposing/admin.py   getopinionated(Download)
from models import VotablePost, Proposal, Comment, CommentReply, UpDownVote, ProposalVote, VotablePostHistory, AmendmentProposal, PositionProposal
from django.contrib.auth.models import Group
from common.admin import DisableableModelAdmin, DisableableTabularInline
 
class VotablePostAdminBase(DisableableModelAdmin):
class ProxyAdmin(DisableableModelAdmin):
    list_display = ['__unicode__', 'tags_str', 'delegating', 'isdefault', 'date_created', 'enabled']
    inlines = (TagInlineForProxy, UserInlineForProxy)
    exclude = ('tags','delegates')
    list_filter = DisableableModelAdmin.list_filter + ['date_created', 'tags']
class UpDownVoteAdmin(DisableableModelAdmin):
    model = UpDownVote
    list_display = ['user', 'post', 'date', 'value', 'enabled']
    list_filter = DisableableModelAdmin.list_filter + ['date', 'value']
    raw_id_fields = ['user', 'post']