(boundfield, contents=None)
return render_to_string("forms/_label.html", {
        "label_text": label_text,
        "id": id_,
        "field": boundfield})
Render label tag for a boundfield, optionally with given contents.
Render label tag for a boundfield, optionally with given contents.
Render label tag for a boundfield optionally with given contents .
def label(boundfield, contents=None):
    """Render label tag for a boundfield, optionally with given contents."""
    label_text = contents or boundfield.label
    id_ = boundfield.field.widget.attrs.get('id') or boundfield.auto_id

    return render_to_string("forms/_label.html", {
        "label_text": label_text,
        "id": id_,
        "field": boundfield})
def label ( boundfield , contents = None ) : label_text = contents or boundfield . label id_ = boundfield . field . widget . attrs . get ( 'id' ) or boundfield . auto_id return render_to_string ( "forms/_label.html" , { "label_text" : label_text , "id" : id_ , "field" : boundfield } )