mirror of https://github.com/MieuxVoter/mvapi
You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
23 lines
432 B
23 lines
432 B
from django.contrib import admin
|
|
|
|
from .models import Election, Vote, Token
|
|
|
|
admin.site.register(Vote)
|
|
admin.site.register(Token)
|
|
|
|
|
|
class ElectionAdmin(admin.ModelAdmin):
|
|
list_display = (
|
|
"title",
|
|
"candidates",
|
|
"on_invitation_only",
|
|
"num_grades",
|
|
"start_at",
|
|
"finish_at",
|
|
"select_language",
|
|
"restrict_results",
|
|
)
|
|
|
|
|
|
admin.site.register(Election, ElectionAdmin)
|