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

All Samples(3)  |  Call(0)  |  Derive(2)  |  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 VotablePostTabularInlineBase(DisableableTabularInline):
    """ TabularInline for VotablePost objects """
    readonly_fields = DisableableTabularInline.readonly_fields + ['is_historical_record']
    raw_id_fields = ['creator']
 
class UpDownVoteInline(DisableableTabularInline):
    model = UpDownVote
    extra = 0
    raw_id_fields = ['user']