summaryrefslogtreecommitdiff
path: root/ishtar_common/management/commands/makemigrations.py
diff options
context:
space:
mode:
Diffstat (limited to 'ishtar_common/management/commands/makemigrations.py')
-rw-r--r--ishtar_common/management/commands/makemigrations.py23
1 files changed, 0 insertions, 23 deletions
diff --git a/ishtar_common/management/commands/makemigrations.py b/ishtar_common/management/commands/makemigrations.py
deleted file mode 100644
index 15309b0d2..000000000
--- a/ishtar_common/management/commands/makemigrations.py
+++ /dev/null
@@ -1,23 +0,0 @@
-from datetime import datetime
-
-from django.core.management.commands.makemigrations import Command
-from django.db import models
-
-
-original_deconstruct = models.Field.deconstruct
-
-
-def new_deconstruct(self):
- """
- virtualtime can induce bad signature for "now" function replace it
- explicitly
- """
- name, path, args, kwargs = original_deconstruct(self)
- if 'default' in kwargs and callable(kwargs['default']) and \
- kwargs['default'].__name__ == 'now':
- kwargs['default'] = datetime.now
- return name, path, args, kwargs
-
-
-models.Field.deconstruct = new_deconstruct
-