ImproperlyConfigured exception with Django 1.8

Issue #57 duplicate
Former user created an issue

Due last changes in Django 1.8 I've got an exception:

  File "/Users/goodfellow/.virtualenvs/sarhiv/lib/python3.4/site-packages/postman/admin.py", line 11, in <module>
    class MessageAdminForm(forms.ModelForm):
  File "/Users/goodfellow/.virtualenvs/sarhiv/lib/python3.4/site-packages/django/forms/models.py", line 274, in __new__
    "needs updating." % name
django.core.exceptions.ImproperlyConfigured: Creating a ModelForm without either the 'fields' attribute or the 'exclude' attribute is prohibited; form MessageAdminForm needs updating.

It can be fixed with two lines: we just need to add 'exclude = []' or fields = 'all' in class Meta of MessageAdminForm and PendingMessageAdminForm

Comments (2)

  1. Log in to comment