We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent a42ed2f commit 3f76be3Copy full SHA for 3f76be3
Section 20 - Django Level Five/learning_users/basic_app/forms.py
@@ -1,4 +1,16 @@
1
from django import forms
2
from django.contrib.auth.models import User
3
-from basic_app.models import UserProfileInfo
+from .models import UserProfileInfo
4
5
+class UserForm(forms.ModelForm):
6
+ password = forms.CharField(widget=forms.PasswordInput())
7
+
8
+ class Meta():
9
+ model = User
10
+ fields = ('username','email','password')
11
12
13
+class UserProfileInfoForm(forms.ModelForm):
14
15
+ model = UserProfileInfo
16
+ fields = ('portfolio_site','profile_pic')
0 commit comments