serializers.py 文件源码

python
阅读 21 收藏 0 点赞 0 评论 0

项目:adjutant 作者: openstack 项目源码 文件源码
def __init__(self, *args, **kwargs):
        super(UpdateProjectQuotasSerializer, self).__init__(*args, **kwargs)
        # NOTE(amelia): This overide is mostly in use so that it can be tested
        # However it does take into account the improbable edge case that the
        # regions have changed since the server was last started
        self.fields['regions'] = serializers.MultipleChoiceField(
            choices=get_region_choices())
评论列表


问题


面经


文章

微信
公众号

扫码关注公众号