From c19ea5b04f16dc1b87e7da59224fe049e13ea2c9 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?R=C3=A9my=20HUBSCHER?= Date: Wed, 21 Aug 2019 11:19:13 +0200 Subject: [PATCH] Add changelog. --- CHANGES.rst | 6 ++++++ model_utils/models.py | 4 ++-- 2 files changed, 8 insertions(+), 2 deletions(-) diff --git a/CHANGES.rst b/CHANGES.rst index abd1a8e..b97922b 100644 --- a/CHANGES.rst +++ b/CHANGES.rst @@ -1,8 +1,14 @@ CHANGES ======= +3.4.0 (unreleased) +------------------ + +- Remove hacks for previously supported Django versions. (Fixes GH-390) + 3.3.0 (2019.08.19) ------------------ + - Added `Choices.subset`. 3.2.0 (2019.06.21) diff --git a/model_utils/models.py b/model_utils/models.py index c93fe2d..50a83f3 100644 --- a/model_utils/models.py +++ b/model_utils/models.py @@ -1,6 +1,5 @@ from __future__ import unicode_literals -import django from django.core.exceptions import ImproperlyConfigured from django.db import models, transaction, router from django.db.models.signals import post_save, pre_save @@ -18,7 +17,8 @@ from model_utils.managers import ( SoftDeletableManager, ) -from django.utils.timezone import now +from django.db.models.functions import Now +now = Now() class TimeStampedModel(models.Model):