Skip to content

Commit

Permalink
Merge pull request #11846 from rtibbles/two_facilities_are_better_tha…
Browse files Browse the repository at this point in the history
…n_one

Ensure facility id is properly sent to public signup viewset.
  • Loading branch information
rtibbles authored Feb 8, 2024
2 parents 125b9f9 + e69794f commit dc97e82
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion kolibri/plugins/setup_wizard/api.py
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,7 @@
from rest_framework.response import Response
from rest_framework.viewsets import ViewSet

from kolibri.core.auth.backends import FACILITY_CREDENTIAL_KEY
from kolibri.core.auth.constants import user_kinds
from kolibri.core.auth.models import Facility
from kolibri.core.auth.models import FacilityUser
Expand Down Expand Up @@ -51,7 +52,9 @@ def createuseronremote(self, request):
url = "{}{}".format(baseurl, api_url)

payload = {
"facility_id": facility_id,
# N.B. facility is keyed by facility not facility_id on the signup
# viewset serializer.
FACILITY_CREDENTIAL_KEY: facility_id,
"username": username,
"password": password,
"full_name": full_name,
Expand Down

0 comments on commit dc97e82

Please sign in to comment.