From 49fd3d92011b3433e45e33bdbde064dba2028075 Mon Sep 17 00:00:00 2001 From: github-actions Date: Mon, 26 Feb 2024 11:22:38 +0000 Subject: [PATCH] Updated documentation --- _modules/apis_core/apis_entities/models.html | 16 ---------------- 1 file changed, 16 deletions(-) diff --git a/_modules/apis_core/apis_entities/models.html b/_modules/apis_core/apis_entities/models.html index 3d9c38e72..d3f9b046e 100644 --- a/_modules/apis_core/apis_entities/models.html +++ b/_modules/apis_core/apis_entities/models.html @@ -93,7 +93,6 @@

Source code for apis_core.apis_entities.models

from django.contrib.contenttypes.models import ContentType from django.conf import settings -from django.contrib.auth.models import Group from django.db.models.signals import post_save from django.dispatch import receiver from django.urls import reverse @@ -402,21 +401,6 @@

Source code for apis_core.apis_entities.models

uri2 = Uri(uri=uri_c, domain="apis default", root_object=instance) uri2.save()

- - -if "registration" in getattr(settings, "INSTALLED_APPS", []): - from registration.backends.simple.views import RegistrationView - from registration.signals import user_registered - - @receiver( - user_registered, - sender=RegistrationView, - dispatch_uid="add_registered_user_to_group", - ) - def add_user_to_group(sender, user, request, **kwargs): - user_group = getattr(settings, "APIS_AUTO_USERGROUP", None) - if user_group is not None: - user.groups.add(Group.objects.get(name=user_group))