Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Error in scaffold: django.core.exceptions.ImproperlyConfigured: Creating a ModelForm without either the 'fields' attribute or the 'exclude' attribute is prohibited; form MODELForm needs updating. #35

Open
vitallan opened this issue May 22, 2017 · 0 comments

Comments

@vitallan
Copy link

Don't know if i'm doing anything wrong. Here are the steps that reproduce the problem:

python 3.4.3
django 1.11.1
django-common-helpers==0.9.1

python manage.py scaffold MA_APP_NAME --model MA_MODEL_NAME char:name text:description
added the new urls in project urls
added MA_APP_NAME in INSTALLED_APPS

When I run runserver, I get this:

django.core.exceptions.ImproperlyConfigured: Creating a ModelForm without either the 'fields' attribute or the 'exclude' attribute is prohibited; form MA_MODEL_NAMEForm needs updating.

I understand that the MA_MODEL_NAMEForm should add the 'fields' attribute, but woudn't it be right if the scaffold solved that for me? Or am I doing something wrong?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant