c52bf300ff
* 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
18 lines
382 B
Python
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"]
|