from django.forms.fields import CharField
from django.forms.widgets import Textarea
+from django.forms.models import ModelMultipleChoiceField
from threadedcomments.forms import ThreadedCommentForm
from xerxes.tools.forms import ContextModelForm
+from xerxes.tools.widgets import DropDownMultiple
from models import Influence, Character
#
raise Exception("Unsupported configuration")
class InfluenceForm(ContextModelForm):
+ other_characters = ModelMultipleChoiceField(queryset=Character.objects.all(), widget=DropDownMultiple)
class Meta:
model = Influence
fields = ('initiator', 'summary', 'other_characters', 'other_contacts', 'description')