|
@@ -1,6 +1,4 @@
|
|
|
from django.db.models import ManyToOneRel
|
|
from django.db.models import ManyToOneRel
|
|
|
-from django.utils import timezone
|
|
|
|
|
-from django.utils.timezone import localtime
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
def dynamic_import(name):
|
|
def dynamic_import(name):
|
|
@@ -14,13 +12,6 @@ def dynamic_import(name):
|
|
|
return mod
|
|
return mod
|
|
|
|
|
|
|
|
|
|
|
|
|
-def local_now():
|
|
|
|
|
- """
|
|
|
|
|
- Return the current date & time in the system timezone.
|
|
|
|
|
- """
|
|
|
|
|
- return localtime(timezone.now())
|
|
|
|
|
-
|
|
|
|
|
-
|
|
|
|
|
def get_related_models(model, ordered=True):
|
|
def get_related_models(model, ordered=True):
|
|
|
"""
|
|
"""
|
|
|
Return a list of all models which have a ForeignKey to the given model and the name of the field. For example,
|
|
Return a list of all models which have a ForeignKey to the given model and the name of the field. For example,
|