def group_get_objects_with_permission(self, model, permission):
    ctype = ContentType.objects.get_for_model(model)
    perms = model.perms.as_int(permission)
    obj_ids = self.grouppermission_set.filter(content_type=ctype).extra(
                where=['permission & %s > 0'], params=[perms]
                ).values_list('object_id', flat=True)
    return model.objects.filter(pk__in=obj_ids)

# The following are added to registered models
Eliminate the builder by producing a new Bottle application.
dataset/ETHPy150Open callowayproject/django-objectpermissions/objectpermissions/registration.py/group_get_objects_with_permission--crossover with--dataset/ETHPy150Open dossier/dossier.web/dossier/web/builder.py/WebBuilder.get_app