Don't use dir in get_obj_perms_model.
Use get_all_related_objects instead.
Merge branch 'devel' of github.com:kostko/django-guardian into kostko-devel