You cannot select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
Enso-Bot/venv/Lib/site-packages/voice/admin.py

13 lines
341 B
Python

from django.contrib import admin
from voice.models import Feature, Vote
class FeatureAdmin(admin.ModelAdmin):
readonly_fields = ('created',)
class VoteAdmin(admin.ModelAdmin):
readonly_fields = ('feature', 'used_facebook', 'used_twitter', 'voter',)
admin.site.register(Vote, VoteAdmin)
admin.site.register(Feature, FeatureAdmin)