# ModelForm has no model class specified.

**URL:** <https://forum.djangoproject.com/t/modelform-has-no-model-class-specified/9341>\
**Category:** Using Django\
**Created:** [August 22, 2021, 6:48pm UTC](https://forum.djangoproject.com/t/modelform-has-no-model-class-specified/9341 "2021-08-22T18:48:07Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![ParaxatBegdullaev](https://sea2.discourse-cdn.com/flex026/user_avatar/forum.djangoproject.com/paraxatbegdullaev/32/5561_2.png) [@ParaxatBegdullaev](https://forum.djangoproject.com/u/ParaxatBegdullaev)\
**Post date:** [August 22, 2021, 6:48pm UTC](https://forum.djangoproject.com/t/modelform-has-no-model-class-specified/9341/1 "2021-08-22T18:48:07Z")

</div>

from django import forms  
from .models import AdvUser  
class ChangeUserInfoForm (forms.ModelForm):  
email = forms.EmailField(required=True,  
label=‘Адрес электронной почты’)  
class Meta:  
model = AdvUser  
fields = (‘username’, ‘email’, ‘first\_name’, ‘last\_name’,  
‘send\_messages’)

---

<div class="post-metadata">

**Author:** ![KenWhitesell](https://sea2.discourse-cdn.com/flex026/user_avatar/forum.djangoproject.com/kenwhitesell/32/280_2.png) [@KenWhitesell](https://forum.djangoproject.com/u/KenWhitesell)\
**Post date:** [August 22, 2021, 7:22pm UTC](https://forum.djangoproject.com/t/modelform-has-no-model-class-specified/9341/2 "2021-08-22T19:22:32Z")

</div>

Please post the complete traceback message you’re receiving.

Also, when you’re posting code or traceback messages, enclose them between lines of three backtick - ` characters. This means you’ll have a line of ```, then the code (or traceback), then another line of ```. This forces the forum software to maintain the proper formatting of the code, which is critical with python.
