34 lines
No EOL
877 B
HTML
34 lines
No EOL
877 B
HTML
<!-- title: frappe.model.utils --><div class="dev-header">
|
|
|
|
<a class="btn btn-default btn-sm" disabled style="margin-bottom: 10px;">
|
|
Version 6.10.1</a>
|
|
|
|
|
|
<a class="btn btn-default btn-sm" href="https://github.com/frappe/frappe/blob/develop/frappe/model/utils.py"
|
|
target="_blank" style="margin-left: 10px; margin-bottom: 10px;"><i class="octicon octicon-mark-github"></i> Source</a>
|
|
|
|
</div>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
<p class="docs-attr-name">
|
|
<a name="frappe.model.utils.set_default" href="#frappe.model.utils.set_default" class="text-muted small">
|
|
<i class="icon-link small" style="color: #ccc;"></i></a>
|
|
frappe.model.utils.<b>set_default</b>
|
|
<i class="text-muted">(doc, key)</i>
|
|
</p>
|
|
<div class="docs-attr-desc"><p>Set is_default property of given doc and unset all others filtered by given key.</p>
|
|
</div>
|
|
<br>
|
|
|
|
|
|
|
|
|
|
|
|
<!-- autodoc --> |