Skip to content

Commit

Permalink
fix: remove django < 1.7 compat in utils.py
Browse files Browse the repository at this point in the history
  • Loading branch information
Gagaro committed Jan 13, 2017
1 parent 71cd054 commit 6b0cc21
Showing 1 changed file with 1 addition and 7 deletions.
8 changes: 1 addition & 7 deletions safedelete/utils.py
@@ -1,14 +1,8 @@
import itertools

from django.contrib.admin.utils import NestedObjects
from django.db import router

try:
# Django 1.7
from django.contrib.admin.utils import NestedObjects
except ImportError:
# Django < 1.7
from django.contrib.admin.util import NestedObjects


def can_hard_delete(obj):
collector = NestedObjects(using=router.db_for_write(obj))
Expand Down

0 comments on commit 6b0cc21

Please sign in to comment.