bornhack-website/src/phonebook/mixins.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

9 lines
261 B
Python

from camps.mixins import CampViewMixin
# from .models import DectRegistration
class DectRegistrationViewMixin(CampViewMixin):
def get_object(self, *args, **kwargs):
return self.model.objects.get(camp=self.camp, number=self.kwargs["dect_number"])