Implement XMPP relaying
This commit is contained in:
@@ -3,7 +3,7 @@ from django.contrib.auth.forms import UserCreationForm
|
||||
from django.forms import ModelForm
|
||||
from mixins.restrictions import RestrictedFormMixin
|
||||
|
||||
from .models import NotificationSettings, User, AI, PersonIdentifier, Person, Group, Persona, Manipulation, ChatSession, Message
|
||||
from .models import NotificationSettings, User, AI, PersonIdentifier, Person, Group, Persona, Manipulation, ChatSession, Message, QueuedMessage
|
||||
|
||||
# Create your forms here.
|
||||
|
||||
@@ -162,3 +162,13 @@ class MessageForm(RestrictedFormMixin, forms.ModelForm):
|
||||
"text": "Content of the message.",
|
||||
"custom_author": "For detecting USER and BOT messages.",
|
||||
}
|
||||
|
||||
class QueueForm(RestrictedFormMixin, forms.ModelForm):
|
||||
class Meta:
|
||||
model = QueuedMessage
|
||||
fields = ("session", "manipulation", "text")
|
||||
help_texts = {
|
||||
"session": "Chat session this message will be sent in.",
|
||||
"manipulation": "Manipulation that generated the message.",
|
||||
"text": "Content of the proposed message.",
|
||||
}
|
||||
Reference in New Issue
Block a user