-
返回
self
的克隆(副本),並重新標記任何列別名。創建子查詢時會重命名列別名。relabeled_clone()
也應該在任何嵌套表達式上調用並分配給克隆。change_map
是將舊別名映射到新別名的字典。例子:
def relabeled_clone(self, change_map): clone = copy.copy(self) clone.expression = self.expression.relabeled_clone(change_map) return clone
本文介紹 django.db.models.Expression.relabeled_clone
的用法。
聲明
relabeled_clone(change_map)
相關用法
- Python Django Expression.get_source_expressions用法及代碼示例
- Python Django Exp用法及代碼示例
- Python Django Extent用法及代碼示例
- Python Django Extent3D用法及代碼示例
- Python Excel轉PDF用法及代碼示例
- Python Django ExclusionConstraint.expressions用法及代碼示例
- Python Django ExclusionConstraint.opclasses用法及代碼示例
- Python Django ExclusionConstraint.deferrable用法及代碼示例
- Python Excel轉CSV用法及代碼示例
- Python Django ExceptionReporter.get_traceback_data用法及代碼示例
- Python Django Exists用法及代碼示例
- Python Example filter()用法及代碼示例
- Python Enumerate()用法及代碼示例
- Python Django EmailBackend用法及代碼示例
- Python Event is_set()用法及代碼示例
- Python Event wait()用法及代碼示例
- Python Event clear()用法及代碼示例
- Python Event set()用法及代碼示例
- Python cudf.core.column.string.StringMethods.is_vowel用法及代碼示例
- Python torch.distributed.rpc.rpc_async用法及代碼示例
- Python torch.nn.InstanceNorm3d用法及代碼示例
- Python sklearn.cluster.MiniBatchKMeans用法及代碼示例
- Python pandas.arrays.IntervalArray.is_empty用法及代碼示例
- Python tf.compat.v1.distributions.Multinomial.stddev用法及代碼示例
- Python numpy.less()用法及代碼示例
注:本文由純淨天空篩選整理自djangoproject.com大神的英文原創作品 django.db.models.Expression.relabeled_clone。非經特殊聲明,原始代碼版權歸原作者所有,本譯文未經允許或授權,請勿轉載或複製。