Skip to content

Commit

Permalink
Merge pull request #15 from druids/CleanSyncPermissions
Browse files Browse the repository at this point in the history
Clean sync permissions command
  • Loading branch information
matllubos committed Oct 25, 2022
2 parents 8e919cd + 4bd2cab commit f46164d
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion fperms_iscore/management/commands/sync_permissions.py
Original file line number Diff line number Diff line change
Expand Up @@ -70,7 +70,8 @@ def handle(self, **options):
self.stdout.write(' Removed: {}'.format(count))
elif nonexistent_used_permissions_qs.exists():
self.stderr.write(
'Found used obsolete permissions, run command with "--clean-obsolete" parameter for cleaning'
f'Found used obsolete permissions ({nonexistent_used_permissions_qs.count()}), '
f'run command with "--clean-obsolete" parameter for cleaning'
)
obsolete_string = ugettext(' (obsolete)')
nonexistent_used_permissions_qs.exclude(
Expand Down

0 comments on commit f46164d

Please sign in to comment.