Skip to content

Commit 627b952

Browse files
committed
squash!: Fix quality test
1 parent 9a4b6a7 commit 627b952

1 file changed

Lines changed: 4 additions & 2 deletions

File tree

openedx_authz/tests/stubs/models.py

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,8 @@
44
referenced in FK relationships without requiring the full application context.
55
"""
66

7+
from django.conf import settings
8+
from django.contrib.auth.models import Group
79
from django.db import models
810
from opaque_keys.edx.locator import LibraryLocatorV2
911

@@ -78,8 +80,8 @@ class ContentLibraryPermission(models.Model):
7880
)
7981

8082
library = models.ForeignKey(ContentLibrary, on_delete=models.CASCADE)
81-
user = models.ForeignKey("auth.User", on_delete=models.CASCADE, null=True, blank=True)
82-
group = models.ForeignKey("auth.Group", on_delete=models.CASCADE, null=True, blank=True)
83+
user = models.ForeignKey(settings.AUTH_USER_MODEL, on_delete=models.CASCADE, null=True, blank=True)
84+
group = models.ForeignKey(Group, on_delete=models.CASCADE, null=True, blank=True)
8385
access_level = models.CharField(max_length=30, choices=ACCESS_LEVEL_CHOICES)
8486

8587
def __str__(self):

0 commit comments

Comments
 (0)