17 lines
607 B
Python
17 lines
607 B
Python
from django import forms
|
|
from django.contrib.auth.forms import AuthenticationForm
|
|
from django.utils.translation import gettext_lazy as _
|
|
from django.core.exceptions import ValidationError
|
|
from .models import *
|
|
|
|
|
|
class TicketForm(forms.ModelForm):
|
|
text = forms.CharField(required=True)
|
|
# files = forms.CharField(required=True)
|
|
class Meta:
|
|
model = MsgGroup
|
|
exclude = [
|
|
'files', 'status', 'owner', 'manager'
|
|
# 'name', 'name_plural', 'order', 'createDT', 'modifiedDT', 'enable', 'json_data',
|
|
# 'receive_msg_by_sms', 'owner', 'owner_type'
|
|
] |