bornhack-website/src/phonebook/admin.py
Thomas Steen Rasmussen c52bf300ff
Phonebook (#465)
* first version of dect registration and phonebook functionality, missing export functionality for dect phone system, the rest should more or less work

* add a missing button and message

* fix typo

* add django-oauth-toolkit to implement oauth2 auth for the DECT csv export

* remove unused HMAC code

* add logger

* only show buttons when user is logged in

* remove unneeded enctype
2020-03-05 12:31:11 +01:00

18 lines
382 B
Python

from django.contrib import admin
from .models import DectRegistration
@admin.register(DectRegistration)
class ProfileAdmin(admin.ModelAdmin):
list_display = [
"camp",
"user",
"number",
"letters",
"description",
"activation_code",
"publish_in_phonebook",
]
list_filter = ["camp", "publish_in_phonebook", "user"]