공지사항관리 기능 분리 및 개선
All checks were successful
Build And Test / build-and-push (push) Successful in 4m23s
All checks were successful
Build And Test / build-and-push (push) Successful in 4m23s
This commit is contained in:
11
board_notice/forms.py
Normal file
11
board_notice/forms.py
Normal file
@ -0,0 +1,11 @@
|
||||
from django import forms
|
||||
from .models import BoardNotice
|
||||
|
||||
class BoardNoticeForm(forms.ModelForm):
|
||||
class Meta:
|
||||
model = BoardNotice
|
||||
fields = ['title', 'contents']
|
||||
widgets = {
|
||||
'title': forms.TextInput(attrs={'class': 'form-control'}),
|
||||
'contents': forms.Textarea(attrs={'class': 'form-control', 'id': 'markdown-editor'}),
|
||||
}
|
||||
Reference in New Issue
Block a user