from op_tasks.models import UserProfile | |
from django.contrib.auth.models import User | |
from django import forms | |
class UserForm(forms.ModelForm): | |
password = forms.CharField(widget=forms.PasswordInput()) | |
email = forms.CharField(widget=forms.EmailInput()) | |
class Meta: | |
model = User | |
fields = ('email', 'password') | |
# class UserProfileForm(forms.ModelForm): | |
# class Meta: | |
# model = UserProfile | |
# fields = ('',) |