Skip to content

Commit 3f76be3

Browse files
committed
updates
1 parent a42ed2f commit 3f76be3

File tree

1 file changed

+13
-1
lines changed
  • Section 20 - Django Level Five/learning_users/basic_app

1 file changed

+13
-1
lines changed
Lines changed: 13 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,16 @@
11
from django import forms
22
from django.contrib.auth.models import User
3-
from basic_app.models import UserProfileInfo
3+
from .models import UserProfileInfo
44

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+
class Meta():
15+
model = UserProfileInfo
16+
fields = ('portfolio_site','profile_pic')

0 commit comments

Comments
 (0)