X-Git-Url: https://git.mdrn.pl/wolnelektury.git/blobdiff_plain/99f6dd4f1ff0390de9a9bbd4e3352b953cb9a235..3f76c44e9183106dec161fcaa5d73f3709e99562:/apps/polls/admin.py?ds=inline diff --git a/apps/polls/admin.py b/apps/polls/admin.py index 965f6c09b..235e8f3c2 100644 --- a/apps/polls/admin.py +++ b/apps/polls/admin.py @@ -4,22 +4,22 @@ # from django.contrib import admin -from models import Poll, PollItem +from .models import Poll, PollItem class PollItemInline(admin.TabularInline): model = PollItem extra = 0 readonly_fields = ('vote_count',) - - + + class PollAdmin(admin.ModelAdmin): inlines = [PollItemInline] - + class PollItemAdmin(admin.ModelAdmin): readonly_fields = ('vote_count',) - - + + admin.site.register(Poll, PollAdmin) admin.site.register(PollItem, PollItemAdmin)