Skip to content

Commit

Permalink
Maintain verbosity settings.
Browse files Browse the repository at this point in the history
  • Loading branch information
karbassi committed Apr 20, 2016
1 parent e3b1e69 commit 9de22c0
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion avatar/management/commands/rebuild_avatars.py
Original file line number Diff line number Diff line change
Expand Up @@ -11,5 +11,7 @@ class Command(NoArgsCommand):
def handle_noargs(self, **options):
for avatar in Avatar.objects.all():
for size in settings.AVATAR_AUTO_GENERATE_SIZES:
print("Rebuilding Avatar id=%s at size %s." % (avatar.id, size))
if options['verbosity'] != 0:
print("Rebuilding Avatar id=%s at size %s." % (avatar.id, size))

avatar.create_thumbnail(size)

0 comments on commit 9de22c0

Please sign in to comment.