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
9 lines
261 B
Python
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"])
|