File tree Expand file tree Collapse file tree 3 files changed +14
-4
lines changed Expand file tree Collapse file tree 3 files changed +14
-4
lines changed Original file line number Diff line number Diff line change 1
1
# -*- coding: utf-8 -*-
2
2
from __future__ import absolute_import , print_function , unicode_literals
3
3
4
- # from django.core.urlresolvers import get_callable
5
- # from django.db.transaction import atomic
6
-
7
4
try :
8
5
from django .template .base import TemplateDoesNotExist
9
6
except ImportError :
10
7
from django .template .exceptions import TemplateDoesNotExist # noqa - django 1.9
8
+
9
+ # try:
10
+ # from django.db.transaction import atomic
11
+ # except ImportError:
12
+ # from django.db.transaction import commit_on_success as atomic # noqa
13
+ #
14
+
15
+ try :
16
+ from django .urls .utils import get_callable
17
+ except ImportError :
18
+ from django .core .urlresolvers import get_callable
Original file line number Diff line number Diff line change 3
3
4
4
from django .core .exceptions import ImproperlyConfigured
5
5
from django .test .signals import setting_changed
6
- from django .urls import get_callable
7
6
from django .utils import six
8
7
8
+ from .compat import get_callable
9
+
9
10
# List Editable Policy
10
11
# 0 do not save updated records, save others, show message to the user
11
12
# 1 abort whole transaction
Original file line number Diff line number Diff line change 7
7
from django .db import connections , router
8
8
from django .db .utils import DatabaseError
9
9
10
+ from .fields import _TRIGGERS # noqa
10
11
11
12
def get_trigger_name (field ):
12
13
"""
You can’t perform that action at this time.
0 commit comments