Commits

Marko Samastur committed fb327df

Fix: uporabi END_OF_TIME

Comments (0)

Files changed (2)

 from django.core.cache import cache
 
 from models import Mandat, Poslanec
-from settings import NULL_DATE
+from temporal import END_OF_TIME
 
 import random, datetime
 
 LONG_LIVE = 5 # 5 seconds cache
 
 def null_date(date):
-	if date == NULL_DATE:
+	if date == END_OF_TIME:
 		return None
 	return date
 
 	here('fixtures/'),
 )
 
-NULL_DATE = datetime.date(9999, 12, 31)
-
 import traceback
 try:
     from localsettings import *