6 lines
330 B
Python
6 lines
330 B
Python
from django import forms
|
|
from ..settings import *
|
|
|
|
class RegisterForm(forms.Form):
|
|
username = forms.CharField(label="username", max_length=USERNAME_MAX_SIZE, min_length=USERNAME_MIN_SIZE, required=True)
|
|
password = forms.CharField(label="password", max_length=PASSWORD_MAX_SIZE, min_length=PASSWORD_MIN_SIZE, required=True) |