lib.itmens/users/forms.py
Henri Dickson 0ffd47ca96
new style
* new style with picocss
* djlint
* rate distribution
* collection item drag to order
* discover available for guest
* search combine movie tv
2023-05-20 11:01:18 -04:00

20 lines
631 B
Python

from django import forms
from .models import Report
from django.utils.translation import gettext_lazy as _
from common.forms import PreviewImageInput
class ReportForm(forms.ModelForm):
class Meta:
model = Report
fields = [
"reported_user",
"image",
"message",
]
widgets = {
"message": forms.Textarea(attrs={"placeholder": _("详情")}),
"image": PreviewImageInput(),
"reported_user": forms.HiddenInput(),
}
labels = {"reported_user": _("投诉对象"), "image": _("相关证据"), "message": _("详情")}