示例#1
0
 def formfield(self, **kwargs):
     # Use our own widget and give him access to the model class
     kwargs['widget'] = jQueryTagFieldWidget(self.model)
     return super(jQueryTagModelField, self).formfield(**kwargs)
示例#2
0
 def __init__(self, tag_model, *args, **kwargs):
     self.tag_model = tag_model
     kwargs["widget"] = jQueryTagFieldWidget(tag_model)
     super(jQueryTagFormField, self).__init__(*args, **kwargs)
示例#3
0
 def formfield(self, **kwargs):
     # Use our own widget and give him access to the model class
     kwargs['widget'] = jQueryTagFieldWidget(self.model)
     return super(jQueryTagModelField, self).formfield(**kwargs)
示例#4
0
 def __init__(self, tag_model, *args, **kwargs):
     self.tag_model = tag_model
     kwargs["widget"] = jQueryTagFieldWidget(tag_model)
     super(jQueryTagFormField, self).__init__(*args, **kwargs)