Files
tripwithbonus/ChatServiceApp/forms.py
SDE c1ac5878cf 0.1.20
support tickets routines
2023-08-02 14:57:50 +03:00

17 lines
609 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'
]