CARGA
CARGA
This commit is contained in:
16
autenticacion/forms.py
Normal file
16
autenticacion/forms.py
Normal file
@@ -0,0 +1,16 @@
|
||||
from django import forms
|
||||
from django.contrib.auth.models import User
|
||||
from django.contrib.auth.forms import UserCreationForm
|
||||
|
||||
class UserForm(UserCreationForm):
|
||||
first_name = forms.CharField()
|
||||
last_name = forms.CharField()
|
||||
|
||||
|
||||
class Meta:
|
||||
model = User
|
||||
fields = ('first_name','last_name', 'username', 'password1' ,'password2' )
|
||||
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user