Management commands

class guardian.management.commands.clean_orphan_obj_perms.Command(stdout=None, stderr=None, no_color=False, force_color=False)

clean_orphan_obj_perms command is a tiny wrapper around guardian.utils.clean_orphan_obj_perms().

Usage:

$ python manage.py clean_orphan_obj_perms
Removed 11 object permission entries with no targets