From d076b7c05f3e68f62f029e028dde6561604ff896 Mon Sep 17 00:00:00 2001 From: benamaurer Date: Sat, 2 Sep 2023 16:45:27 +0000 Subject: [PATCH] Update models.py to correct Donor LP group reference It looks like this is trying to retrieve donor status by checking if players are part of the "donator" group in LP. Wondering if updating this name to "donor" which matches the current LP group would fix this? --- models.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/models.py b/models.py index bb6eaba..9194c22 100644 --- a/models.py +++ b/models.py @@ -128,7 +128,7 @@ class Player(models.Model): try: from django_luckperms.models import LuckPermsPlayerPermissions as lppp - donator = lppp.objects.filter(permission='group.donator', uuid=self.uuid) + donator = lppp.objects.filter(permission='group.donor', uuid=self.uuid) if donator.exists(): expiry = donator.first().expiry if expiry > 0: -- 2.41.0