'Attempt to set the apps via the superclass, catching and handling the
TypeError raised if the apps are passed in a grouped manner.'

def set_apps(self, obj, apps):

    try:
        super(GroupedAppsViewSetMixin, self).set_apps(obj, apps)
    except TypeError:
        self.set_apps_grouped(obj, apps)
