Add filter

This commit is contained in:
2025-05-09 21:01:22 +00:00
parent f5c6b535d8
commit f0c4b350a9
9 changed files with 205 additions and 805 deletions

View File

@@ -131,7 +131,7 @@ class PersonaForm(RestrictedFormMixin, forms.ModelForm):
class ManipulationForm(RestrictedFormMixin, forms.ModelForm):
class Meta:
model = Manipulation
fields = ("name", "group", "ai", "persona", "enabled", "mode")
fields = ("name", "group", "ai", "persona", "enabled", "mode", "filter_enabled")
help_texts = {
"name": "The name of this manipulation strategy.",
"group": "The group involved in this manipulation strategy.",
@@ -140,6 +140,7 @@ class ManipulationForm(RestrictedFormMixin, forms.ModelForm):
"persona": "The persona used for this manipulation.",
"enabled": "Whether this manipulation is enabled.",
"mode": "Mode of operation.",
"filter_enabled": "Whether incoming messages will be filtered using the persona.",
}