We are currently solving the following issue within our repository. Here is the issue text:
--- BEGIN ISSUE ---
Chant-edit page doesn't load for Admin user
The chant-edit page (e.g., http://127.0.0.1:3122/edit-volpiano/702611?pk=705019) takes forever to load for Admin user. 
I was logged in with my Admin account (i.e., superuser). Ideally, this should give me power to access and change anything. 

I also check with my project manager account and it loaded fine.

--- END ISSUE ---

Below are some code segments, each from a relevant file. One or more of these files may contain bugs.
--- BEGIN FILES ---
Path: `django/cantusdb_project/users/managers.py`
Content:
```
1 # https://testdriven.io/blog/django-custom-user-model/#:~:text=The%20default%20User%20model%20in,either%20subclassing%20AbstractUser%20or%20AbstractBaseUser%20.
2 
3 from django.contrib.auth.base_user import BaseUserManager
4 from django.utils.translation import gettext_lazy as _
5 
6 
7 class CustomUserManager(BaseUserManager):
8     """
9     Custom user model manager where email is the unique identifiers
10     for authentication instead of usernames.
11     """
12     def create_user(self, email, password, **extra_fields):
13         """
14         Create and save a User with the given email and password.
15         """
16         if not email:
17             raise ValueError(_('The Email must be set'))
18         email = self.normalize_email(email)
19         user = self.model(email=email, **extra_fields)
20         user.set_password(password)
21         user.save()
22         return user
23 
24     def create_superuser(self, email, password, **extra_fields):
25         """
26         Create and save a SuperUser with the given email and password.
27         """
28         extra_fields.setdefault('is_staff', True)
29         extra_fields.setdefault('is_superuser', True)
30         extra_fields.setdefault('is_active', True)
31 
32         if extra_fields.get('is_staff') is not True:
33             raise ValueError(_('Superuser must have is_staff=True.'))
34         if extra_fields.get('is_superuser') is not True:
35             raise ValueError(_('Superuser must have is_superuser=True.'))
36         return self.create_user(email, password, **extra_fields)
```
--- END FILES ---

Please first localize the bug based on the issue statement, and then generate a patch according to the `git diff` format fenced by three backticks.

Here is an example:

```diff
diff --git a/examples/server_async.py b/examples/server_async.py
--- a/examples/server_async.py
+++ b/examples/server_async.py
@@ -313,4 +313,4 @@
 
 
 if __name__ == "__main__":
-    asyncio.run(run_async_server("."), debug=True)
+    asyncio.run(run_async_server(), debug=True)
diff --git a/examples/server_sync.py b/examples/server_sync.py
--- a/examples/server_sync.py
+++ b/examples/server_sync.py
@@ -313,5 +313,5 @@
 
 
 if __name__ == "__main__":
-    server = run_sync_server(".")
+    server = run_sync_server()
     server.shutdown()

```

diff --git a/django/cantusdb_project/users/managers.py b/django/cantusdb_project/users/managers.py
--- a/django/cantusdb_project/users/managers.py
+++ b/django/cantusdb_project/users/managers.py
@@ -2,7 +2,7 @@
 
 from django.contrib.auth.base_user import BaseUserManager
 from django.utils.translation import gettext_lazy as _
-
+from django.contrib.auth.models import Group
 
 class CustomUserManager(BaseUserManager):
     """
@@ -33,4 +33,7 @@
             raise ValueError(_('Superuser must have is_staff=True.'))
         if extra_fields.get('is_superuser') is not True:
             raise ValueError(_('Superuser must have is_superuser=True.'))
-        return self.create_user(email, password, **extra_fields)
\ No newline at end of file
+        user = self.create_user(email, password, **extra_fields)
+        pm = Group.objects.get(name='project manager') 
+        pm.user_set.add(user)
+        return user
\ No newline at end of file

{"golden_diff": "diff --git a/django/cantusdb_project/users/managers.py b/django/cantusdb_project/users/managers.py\n--- a/django/cantusdb_project/users/managers.py\n+++ b/django/cantusdb_project/users/managers.py\n@@ -2,7 +2,7 @@\n \n from django.contrib.auth.base_user import BaseUserManager\n from django.utils.translation import gettext_lazy as _\n-\n+from django.contrib.auth.models import Group\n \n class CustomUserManager(BaseUserManager):\n     \"\"\"\n@@ -33,4 +33,7 @@\n             raise ValueError(_('Superuser must have is_staff=True.'))\n         if extra_fields.get('is_superuser') is not True:\n             raise ValueError(_('Superuser must have is_superuser=True.'))\n-        return self.create_user(email, password, **extra_fields)\n\\ No newline at end of file\n+        user = self.create_user(email, password, **extra_fields)\n+        pm = Group.objects.get(name='project manager') \n+        pm.user_set.add(user)\n+        return user\n\\ No newline at end of file\n", "issue": "Chant-edit page doesn't load for Admin user\nThe chant-edit page (e.g., http://127.0.0.1:3122/edit-volpiano/702611?pk=705019) takes forever to load for Admin user. \r\nI was logged in with my Admin account (i.e., superuser). Ideally, this should give me power to access and change anything. \r\n\r\nI also check with my project manager account and it loaded fine.\n", "before_files": [{"content": "# https://testdriven.io/blog/django-custom-user-model/#:~:text=The%20default%20User%20model%20in,either%20subclassing%20AbstractUser%20or%20AbstractBaseUser%20.\n\nfrom django.contrib.auth.base_user import BaseUserManager\nfrom django.utils.translation import gettext_lazy as _\n\n\nclass CustomUserManager(BaseUserManager):\n    \"\"\"\n    Custom user model manager where email is the unique identifiers\n    for authentication instead of usernames.\n    \"\"\"\n    def create_user(self, email, password, **extra_fields):\n        \"\"\"\n        Create and save a User with the given email and password.\n        \"\"\"\n        if not email:\n            raise ValueError(_('The Email must be set'))\n        email = self.normalize_email(email)\n        user = self.model(email=email, **extra_fields)\n        user.set_password(password)\n        user.save()\n        return user\n\n    def create_superuser(self, email, password, **extra_fields):\n        \"\"\"\n        Create and save a SuperUser with the given email and password.\n        \"\"\"\n        extra_fields.setdefault('is_staff', True)\n        extra_fields.setdefault('is_superuser', True)\n        extra_fields.setdefault('is_active', True)\n\n        if extra_fields.get('is_staff') is not True:\n            raise ValueError(_('Superuser must have is_staff=True.'))\n        if extra_fields.get('is_superuser') is not True:\n            raise ValueError(_('Superuser must have is_superuser=True.'))\n        return self.create_user(email, password, **extra_fields)", "path": "django/cantusdb_project/users/managers.py"}], "after_files": [{"content": "# https://testdriven.io/blog/django-custom-user-model/#:~:text=The%20default%20User%20model%20in,either%20subclassing%20AbstractUser%20or%20AbstractBaseUser%20.\n\nfrom django.contrib.auth.base_user import BaseUserManager\nfrom django.utils.translation import gettext_lazy as _\nfrom django.contrib.auth.models import Group\n\nclass CustomUserManager(BaseUserManager):\n    \"\"\"\n    Custom user model manager where email is the unique identifiers\n    for authentication instead of usernames.\n    \"\"\"\n    def create_user(self, email, password, **extra_fields):\n        \"\"\"\n        Create and save a User with the given email and password.\n        \"\"\"\n        if not email:\n            raise ValueError(_('The Email must be set'))\n        email = self.normalize_email(email)\n        user = self.model(email=email, **extra_fields)\n        user.set_password(password)\n        user.save()\n        return user\n\n    def create_superuser(self, email, password, **extra_fields):\n        \"\"\"\n        Create and save a SuperUser with the given email and password.\n        \"\"\"\n        extra_fields.setdefault('is_staff', True)\n        extra_fields.setdefault('is_superuser', True)\n        extra_fields.setdefault('is_active', True)\n\n        if extra_fields.get('is_staff') is not True:\n            raise ValueError(_('Superuser must have is_staff=True.'))\n        if extra_fields.get('is_superuser') is not True:\n            raise ValueError(_('Superuser must have is_superuser=True.'))\n        user = self.create_user(email, password, **extra_fields)\n        pm = Group.objects.get(name='project manager') \n        pm.user_set.add(user)\n        return user", "path": "django/cantusdb_project/users/managers.py"}]}