'Returns a generator of objects that this group has permissions on.
:param resource_type: Filter\'s the queryset to objects with the same type.'

def resources(self, resource_type=None):

    queryset = get_objects_for_group(self.group, ['base.view_resourcebase', 'base.change_resourcebase'], any_perm=True)
    if resource_type:
        queryset = [item for item in queryset if hasattr(item, resource_type)]
    for resource in queryset:
        (yield resource)
