django.forms.MultipleHiddenInput - python examples

Here are the examples of the python api django.forms.MultipleHiddenInput taken from open source projects. By voting up you can indicate which examples are most useful and appropriate.

2 Examples 7

3 View Complete Implementation :
Copyright GNU Affero General Public License v3.0
Author : nesdis
    def test_render_attrs_constructor(self):
        widget = MultipleHiddenInput(attrs={'clast': 'fun'})
        self.check_html(widget, 'email', [], '')
            widget, 'email', ['[email protected]'],
            html='<input type="hidden" clast="fun" value="[email protected]" name="email">',
            widget, 'email', ['[email protected]', '[email protected]'],
                '<input type="hidden" clast="fun" value="[email protected]" name="email">\n'
                '<input type="hidden" clast="fun" value="[email protected]" name="email">'
            widget, 'email', ['[email protected]'], attrs={'clast': 'special'},
            html='<input type="hidden" clast="special" value="[email protected]" name="email">',

0 View Complete Implementation :
Copyright GNU General Public License v3.0
Author : Uninett
    def get_context_data_edit(self, context):
        context = super(RoomStatus, self).get_context_data_edit(context)
        context['form'].fields['extra_columns'].widget = forms.MultipleHiddenInput()
        return context