0.1.0
ChatServiceApp
This commit is contained in:
17
ChatServiceApp/forms.py
Normal file
17
ChatServiceApp/forms.py
Normal file
@@ -0,0 +1,17 @@
|
||||
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 CreateTicketForm(forms.ModelForm):
|
||||
text = forms.CharField(required=True)
|
||||
# files = forms.CharField(required=True)
|
||||
class Meta:
|
||||
model = MsgGroup
|
||||
exclude = [
|
||||
'files'
|
||||
# 'name', 'name_plural', 'order', 'createDT', 'modifiedDT', 'enable', 'json_data',
|
||||
# 'receive_msg_by_sms', 'owner', 'owner_type'
|
||||
]
|
||||
Reference in New Issue
Block a user