Skip to content

Commit 605dfcb

Browse files
author
Mark Unsworth
committed
cleanup based on @aburgel comments
1 parent 7faa4a4 commit 605dfcb

File tree

5 files changed

+2
-15
lines changed

5 files changed

+2
-15
lines changed

django_mongodb_engine/base.py

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -74,8 +74,6 @@ def sql_flush(self, style, tables, sequence_list, allow_cascade=False):
7474
options = collection.options()
7575

7676
if not options.get('capped', False):
77-
78-
# TODO:Not backwards compatible
7977
collection.remove({})
8078

8179
return []

requirements.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11

2-
pymongo>=3.0
2+
pymongo>=2.8
33

44
https://github.com/django-nonrel/djangotoolbox/tarball/master
55
https://github.com/django-nonrel/django/tarball/nonrel-1.5

setup.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@
1818
description=DESCRIPTION,
1919
long_description=LONG_DESCRIPTION,
2020

21-
install_requires=['pymongo>=3.0', 'djangotoolbox>=1.6.0'],
21+
install_requires=['pymongo>=2.8', 'djangotoolbox>=1.6.0'],
2222

2323
packages=find_packages(exclude=['tests', 'tests.*']),
2424
zip_safe=False,

tests/lookup/tests.py

Lines changed: 0 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,6 @@
22
from operator import attrgetter
33

44
from django.core.exceptions import FieldError
5-
from django.db import connection
65
from django.db.utils import DatabaseError
76
from django.test import TestCase, skipUnlessDBFeature
87

@@ -19,15 +18,6 @@ class LookupTests(TestCase):
1918

2019
def setUp(self):
2120

22-
Author.objects.all().delete()
23-
Article.objects.all().delete()
24-
Tag.objects.all().delete()
25-
26-
# Create a few Authors.
27-
Author.objects.all().delete()
28-
Article.objects.all().delete()
29-
Tag.objects.all().delete()
30-
3121
self.au1 = Author(name='Author 1')
3222
self.au1.save()
3323
self.au2 = Author(name='Author 2')

tests/mongodb/tests.py

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,6 @@
66
from django.db import connection
77
from django.db.utils import DatabaseError, IntegrityError
88
from django.db.models import Q
9-
from encodings.big5 import codec
109
from gridfs import GridOut
1110
from pymongo import ASCENDING, DESCENDING, ReadPreference, version_tuple as pymongo_version
1211
from django_mongodb_engine.base import DatabaseWrapper

0 commit comments

Comments
 (0)