Skip to content

Commit

Permalink
Bump version; Use .count() for management command instead of len()
Browse files Browse the repository at this point in the history
  • Loading branch information
saulshanabrook committed Jun 7, 2013
1 parent 72f1d1d commit dfd5289
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 2 deletions.
1 change: 1 addition & 0 deletions CHANGES.txt
@@ -1,3 +1,4 @@
v0.2.6, 06/06/13 -- Use .count() for management command instead of len()
v0.2.5, 06/04/13 -- Fixed `retransform` with no fields
v0.2.4, 06/04/13 -- Increased transform debug logging
v0.2.3, 06/04/13 -- Add all packages so that Django finds management command
Expand Down
2 changes: 1 addition & 1 deletion setup.py
Expand Up @@ -3,7 +3,7 @@

setup(
name='django-simpleimages',
version='0.2.5',
version='0.2.6',
author='Saul Shanabrook',
author_email='s.shanabrook@gmail.com',
packages=find_packages(),
Expand Down
4 changes: 3 additions & 1 deletion simpleimages/management/commands/retransform.py
Expand Up @@ -24,7 +24,9 @@ def handle(self, *args, **options):
if not model:
raise CommandError('That model-app pair can not be found')
instances = model._default_manager.all()
self.stdout.write('Transforming {0} models'.format(len(instances)))
self.stdout.write(
'Transforming {0} models'.format(instances.count())
)

if field_name:
utils.perform_transformation(
Expand Down

0 comments on commit dfd5289

Please sign in to comment.