ModelForm has no model class specified.

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')

-- 
You received this message because you are subscribed to the Google Groups 
"Django users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to django-users+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/django-users/15d3533c-b6ab-4c43-9335-eb0ed419daa3n%40googlegroups.com.

Reply via email to