(bases, attrs)
return fieldsets
Get the fieldsets definition from the inner Meta class.
Get the fieldsets definition from the inner Meta class.
Get the fieldsets definition from the inner Meta class .
def get_fieldsets(bases, attrs):
    """Get the fieldsets definition from the inner Meta class."""
    fieldsets = _get_meta_attr(attrs, 'fieldsets', None)
    if fieldsets is None:
        #grab the fieldsets from the first base class that has them
        for base in bases:
            fieldsets = getattr(base, 'base_fieldsets', None)
            if fieldsets is not None:
                break
    fieldsets = fieldsets or []
    return fieldsets
def get_fieldsets ( bases , attrs ) : fieldsets = _get_meta_attr ( attrs , 'fieldsets' , None ) if fieldsets is None : #grab the fieldsets from the first base class that has them for base in bases : fieldsets = getattr ( base , 'base_fieldsets' , None ) if fieldsets is not None : break fieldsets = fieldsets or [ ] return fieldsets