]> git.parisson.com Git - telemeta.git/commit
Fix ImproperlyConfigured Exception for ModelForm
authorThomas Fillon <thomas@parisson.com>
Tue, 17 Jan 2017 16:52:02 +0000 (17:52 +0100)
committerThomas Fillon <thomas@parisson.com>
Tue, 17 Jan 2017 16:52:02 +0000 (17:52 +0100)
commit78c1414f4a464a0f1d0d83e83c138662ae147569
tree93ad748e809236d336bc77419277664e8b144714
parentf69accce5943a8ebe1718e06e94b8191e8610312
Fix ImproperlyConfigured Exception for ModelForm

The issue was caused by this change in Django 1.8:
In older versions, omitting both fields and exclude resulted in a form with all the model’s fields. Doing this now raises an ImproperlyConfigured exception.

See https://docs.djangoproject.com/en/1.8/topics/forms/modelforms/#selecting-the-fields-to-use
telemeta/forms/language.py
telemeta/forms/media.py
telemeta/forms/system.py