def get_user_quotas(self, context, resources, project_id, user_id,
                        quota_class=None, defaults=True,
                        usages=True, project_quotas=None,
                        user_quotas=None):
        if user_quotas:
            user_quotas = user_quotas.copy()
        else:
            user_quotas = db.quota_get_all_by_project_and_user(context,
                                                               project_id,
                                                               user_id)
        # Use the project quota for default user quota.
        proj_quotas = project_quotas or db.quota_get_all_by_project(
            context, project_id)
        for key, value in six.iteritems(proj_quotas):
            if key not in user_quotas.keys():
                user_quotas[key] = value
        user_usages = None
        if usages:
            user_usages = db.quota_usage_get_all_by_project_and_user(context,
                                                         project_id,
                                                         user_id)
        return self._process_quotas(context, resources, project_id,
                                    user_quotas, quota_class,
                                    defaults=defaults, usages=user_usages)
Handles POST requests, instantiating a form and formset instances with the passed
dataset/ETHPy150Open openstack/nova/nova/quota.py/DbQuotaDriver.get_user_quotas--crossover with--dataset/ETHPy150Open AndrewIngram/django-extra-views/extra_views/advanced.py/ProcessFormWithInlinesView.post