python django.core.exceptions.ImproperlyConfigured ModelForm fields exclude

Опубликовано: 20 Ноябрь 2016
на канале: ATOM
1,082
4

python django.core.exceptions.ImproperlyConfigured: Creating a ModelForm without either the 'fields' attribute or the 'exclude' attribute is prohibited
Fix:
class MyAdminForm forms.ModelForm :
class Meta:
model = MyModel
fields = "__all__"

Python Tutorials :   / pythontutori.  .
Please Like this Page to get Latest Python, Machine Learning and Artificial intelligence Tutorials

If you enjoy these videos and would like to support my channel, I would greatly appreciate any assistance.
https://www.paypal.me/tutorialdonation/1

Thanks


Смотрите видео python django.core.exceptions.ImproperlyConfigured ModelForm fields exclude онлайн без регистрации, длительностью часов минут секунд в хорошем качестве. Это видео добавил пользователь ATOM 20 Ноябрь 2016, не забудьте поделиться им ссылкой с друзьями и знакомыми, на нашем сайте его посмотрели 1,082 раз и оно понравилось 4 людям.