mirror of
https://github.com/RobbieHan/sandboxMP.git
synced 2026-04-15 11:01:10 +08:00
structure create
This commit is contained in:
@@ -3,8 +3,15 @@
|
||||
# @File : forms.py
|
||||
|
||||
from django import forms
|
||||
from .models import Structure
|
||||
|
||||
|
||||
class LoginForm(forms.Form):
|
||||
username = forms.CharField(required=True, error_messages={"requeired": "请填写用户名"})
|
||||
password = forms.CharField(required=True, error_messages={"requeired": "请填写密码"})
|
||||
password = forms.CharField(required=True, error_messages={"requeired": "请填写密码"})
|
||||
|
||||
|
||||
class StructureForm(forms.ModelForm):
|
||||
class Meta:
|
||||
model = Structure
|
||||
fields = ['type', 'name', 'parent']
|
||||
|
||||
Reference in New Issue
Block a user