oioioi.base.utils.input_with_generate

Module Contents

Classes

TextInputWithGenerate

Base class for all <input> widgets.

class oioioi.base.utils.input_with_generate.TextInputWithGenerate(*args, **kwargs)[source]

Bases: django.forms.TextInput

Base class for all <input> widgets.

class Media[source]

Bases: object

js = ['common/ajax-generate-key.js'][source]
html_template = Multiline-String[source]
Show Value
1<div id={id}>
2   {input_html}
3   <input type="button" value="Generate" />
4</div>
render(name, value, attrs=None, renderer=None)[source]

Render the widget as an HTML string.