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.
2 parents 1963e4f + 48df720 commit 6631750Copy full SHA for 6631750
compressor/management/commands/compress.py
@@ -53,6 +53,8 @@ class Command(NoArgsCommand):
53
"directory of itself.", dest='follow_links'),
54
)
55
56
+ requires_model_validation = False
57
+
58
def get_loaders(self):
59
from django.template.loader import template_source_loaders
60
if template_source_loaders is None:
tests/tests/offline.py
@@ -26,6 +26,9 @@ def tearDown(self):
26
settings.COMPRESS_OFFLINE = self._old_compress_offline
27
self.template_file.close()
28
29
+ def test_requires_model_validation(self):
30
+ self.assertFalse(CompressCommand.requires_model_validation)
31
32
def test_offline(self):
33
count, result = CompressCommand().compress()
34
self.assertEqual(5, count)
0 commit comments