Update usage of datetime.now to Django timezone aware now()

This commit is contained in:
Roberto Rosario
2014-06-29 17:00:07 -04:00
parent a46642015b
commit d640eacec8
16 changed files with 54 additions and 47 deletions
+2 -1
View File
@@ -3,12 +3,13 @@
import datetime
from django.contrib.auth.models import User
from django.utils.timezone import now
from smart_settings.api import register_settings
default_available_functions = {
'current_date': datetime.datetime.now().date,
'current_date': now().date,
}
default_available_models = {