All checks were successful
Build And Test / build-and-push (push) Successful in 4m23s
12 lines
380 B
Python
12 lines
380 B
Python
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'}),
|
|
}
|