5👍
✅
I have it 😉
In admin.py I have own form for MultipleChoiceField:
people = forms.ModelMultipleChoiceField(
Person.objects.all(),
widget=FilteredSelectMultiple("Účastníci", False, attrs={'rows': '10'})
)
class Meta:
model = Event
Even if I had
# -*- coding: utf-8 -*-
on the beginning of the file, “Účastníci” made troubles. When I changed it to “Ucastnici”, everything works fine.
-1👍
I found experimentally that the error is debug_toolbar
. With DEBUG=True debug_toolbar
disabled
- [Django]-Django REST Framework: Customize data dict on JSONRenderer
- [Django]-Django allauth CSRF Verification fail error
- [Django]-Django: Sum by date and then create extra field showing rolling average
- [Django]-Is it good to use Django 1.1 on App Engine?
Source:stackexchange.com