공지사항관리 기능 분리 및 개선
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:
@ -1,11 +1 @@
|
||||
from django import forms
|
||||
from .models import NoticeBoard
|
||||
|
||||
class PostForm(forms.ModelForm):
|
||||
class Meta:
|
||||
model = NoticeBoard
|
||||
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