Django-autocomplete-light 2.0.0a15 で Django 1.6 を使用してHold down "Control", or "Command" on a Mac, to select more than one.
おり、フォームの文字列を削除しようとしています。
ドキュメント ( https://django-autocomplete-light.readthedocs.org/en/v2/faq.html#how-to-work-around-django-bug-9321-hold-down-control ) によると、SelectMultipleHelpTextRemovalMixin
私のフォーム定義で使用します。
私は次のことを試しました:
import autocomplete_light
autocomplete_light.autodiscover()
from django import forms
from .models import SomeModel
class CreatePatFromEidForm(autocomplete_light.SelectMultipleHelpTextRemovalMixin, autocomplete_light.ModelForm):
class Meta:
model = SomeModel
...しかし、これは次の結果をもたらします:
TypeError: Error when calling the metaclass bases
Cannot create a consistent method resolution
order (MRO) for bases ModelForm, SelectMultipleHelpTextRemovalMixin
これは何が原因なのですか?