mirror of https://github.com/sgoudham/Enso-Bot.git
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.
13 lines
341 B
Python
13 lines
341 B
Python
5 years ago
|
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)
|