parent
0d57509e6a
commit
3e8aed601f
@ -1,9 +1,9 @@
|
||||
from django import forms
|
||||
from django.contrib.auth.forms import UserCreationForm
|
||||
from django.contrib.auth.models import User
|
||||
from .models import LameUser
|
||||
|
||||
class UserSignUpForm(UserCreationForm):
|
||||
email = forms.EmailField(max_length=100, help_text='Required')
|
||||
class Meta:
|
||||
model = User
|
||||
model = LameUser
|
||||
fields = ('username', 'email', 'password1', 'password2')
|
@ -1,4 +1,9 @@
|
||||
from django.db import models
|
||||
from django.contrib.auth.models import AbstractUser
|
||||
|
||||
# Create your models here.
|
||||
# Create your models here.
|
||||
class LameUser(AbstractUser):
|
||||
pass
|
||||
|
||||
def __str__(self):
|
||||
return self.username
|
Loading…
Reference in new issue