def get_model_fields(self):
        """ List of model fields to include (defaults to all) """

        model_fields = getattr(self.Meta, 'fields', None)

        if model_fields is not None:
            model_fields = set(model_fields)

        return model_fields
def get_model_fields ( self ) : model_fields = getattr ( self . Meta , 'fields' , None ) if model_fields is not None : model_fields = set ( model_fields ) return model_fields
List of model fields to include (defaults to all)