Skip to content

Commit

Permalink
fix: user creation
Browse files Browse the repository at this point in the history
  • Loading branch information
EwoutV committed Apr 9, 2024
1 parent 448b337 commit d667743
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 2 deletions.
4 changes: 4 additions & 0 deletions backend/api/apps.py
Original file line number Diff line number Diff line change
@@ -1,6 +1,10 @@

from django.apps import AppConfig


class ApiConfig(AppConfig):
default_auto_field = "django.db.models.BigAutoField"
name = "api"

def ready(self) -> None:
import api.signals
3 changes: 1 addition & 2 deletions backend/api/signals.py
Original file line number Diff line number Diff line change
Expand Up @@ -10,10 +10,9 @@
run_extra_checks = Signal()

# Receivers


@receiver(user_created)
def _user_creation(user: User, attributes: dict, **_):
print(user)
"""Upon user creation, auto-populate additional properties"""
student_id: str = attributes.get("ugentStudentID")

Expand Down

0 comments on commit d667743

Please sign in to comment.