def as_form(self, ng_controller=None, **attrs):
        data = self.as_dict(**attrs)
        form = data['field']
        directive = form.pop('directive', 'lux-form')
        id = form['id']
        script = (id, json.dumps(data)) % form_script
        html = Html(directive, script).data('options', 'luxforms.%s' % id)
        ng_controller = ng_controller or form.pop('ng_controller', None)
        # add controller if required
        if ng_controller:
            html.data('ng-controller', ng_controller)
        return html
dataset/ETHPy150Open quantmind/lux/lux/forms/serialise.py/SerialisedForm.as_form/swapped operands of `%`