We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 7055272 commit a5ff383Copy full SHA for a5ff383
chunkator/__init__.py
@@ -7,10 +7,13 @@
7
import django
8
9
if StrictVersion(django.get_version()) < StrictVersion('1.8.0'):
10
- warnings.warn(
11
- "Django 1.7 and lower versions will soon be deprecated. Please upgrade.", # noqa
12
- DeprecationWarning
13
- )
+ with warnings.catch_warnings():
+ # This will force the warning to be triggered.
+ warnings.simplefilter("always")
+ warnings.warn(
14
+ "Django 1.7 and lower versions will soon be deprecated. Please upgrade.", # noqa
15
+ PendingDeprecationWarning
16
+ )
17
18
19
class MissingPkFieldException(Exception):
0 commit comments