Browse Source

Rename signal

master
Joshua Rubingh 6 months ago
parent
commit
8689370f79
  1. 4
      VRE/apps/vre_apps/signals.py

4
VRE/apps/vre_apps/signals.py

@ -1,4 +1,4 @@ @@ -1,4 +1,4 @@
from django.db.models.signals import post_save
from django.db.models.signals import post_save, pre_delete
from django.dispatch import receiver
from apps.study.models import StudyRoleNames
@ -8,7 +8,7 @@ from apps.virtual_machine.models import VirtualMachine @@ -8,7 +8,7 @@ from apps.virtual_machine.models import VirtualMachine
@receiver(post_save, sender=VRE_App)
def create_virtual_machine(sender, instance, created, **kwargs):
def create_VRE_app(sender, instance, created, **kwargs):
"""when a new reseracher is added to a study, it could be that a new virtual workspace needs to be created.
This signal will check if this is the case based on if the researcher is **added** to the study and has the proper study role.

Loading…
Cancel
Save