summaryrefslogtreecommitdiffstats
path: root/users/apps.py
diff options
context:
space:
mode:
Diffstat (limited to 'users/apps.py')
-rw-r--r--users/apps.py6
1 files changed, 6 insertions, 0 deletions
diff --git a/users/apps.py b/users/apps.py
index 88f7b17..05b5c3f 100644
--- a/users/apps.py
+++ b/users/apps.py
@@ -4,3 +4,9 @@ from django.apps import AppConfig
class UsersConfig(AppConfig):
default_auto_field = "django.db.models.BigAutoField"
name = "users"
+
+ def ready(self) -> None:
+ # Generate the server actor keypair if needed
+ from users.models import SystemActor
+
+ SystemActor.generate_keys_if_needed()