def __init__(self, url, **kw): Widget.__init__(self, **kw) self.get_url = url if callable(url) else lambda request: url self.url = None self.session = None
def __init__(self, url, label_field='label', **kw): Widget.__init__(self, **kw) self.label_field = label_field self.get_url = url if callable(url) else lambda request: url self.url = None
def __init__(self, *args, **kwargs): self.options = dict(self.default_options) Widget.__init__(self, *args, **kwargs)