fix: forms.py was missing
This commit is contained in:
11
ticketsystem/forms.py
Normal file
11
ticketsystem/forms.py
Normal file
@@ -0,0 +1,11 @@
|
||||
from django import forms
|
||||
from .models import Comment
|
||||
|
||||
|
||||
class CommentForm(forms.ModelForm):
|
||||
class Meta:
|
||||
model = Comment
|
||||
fields = ["text"]
|
||||
widgets = {
|
||||
"text": forms.Textarea(attrs={"rows": 3, "placeholder": "Kommentar schreiben..."}),
|
||||
}
|
||||
Reference in New Issue
Block a user