From 3cac109c5ede4a71270f6baa663b7e813332d0ee Mon Sep 17 00:00:00 2001
From: Jorran de Wit <jorrandewit@outlook.com>
Date: Sat, 2 Dec 2017 10:36:04 +0100
Subject: [PATCH] Test theory

---
 scipost/managers.py | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/scipost/managers.py b/scipost/managers.py
index eb8d2cefb..b62ac59bb 100644
--- a/scipost/managers.py
+++ b/scipost/managers.py
@@ -5,10 +5,11 @@ from django.utils import timezone
 from .constants import CONTRIBUTOR_NORMAL, INVITATION_EDITORIAL_FELLOW,\
                        CONTRIBUTOR_NEWLY_REGISTERED, AUTHORSHIP_CLAIM_PENDING
 
+today = timezone.now().date()
+
 
 class FellowManager(models.Manager):
     def active(self):
-        today = timezone.now().date()
         return self.filter(
             Q(start_date__lte=today, until_date__isnull=True) |
             Q(start_date__isnull=True, until_date__gte=today) |
@@ -49,7 +50,6 @@ class RegistrationInvitationManager(models.Manager):
 
 class UnavailabilityPeriodManager(models.Manager):
     def today(self):
-        today = timezone.now().date()
         return self.filter(start__lte=today, end__gte=today)
 
 
-- 
GitLab