|
|
@ -36,6 +36,9 @@ class AgentPrompt(models.Model): |
|
|
content = models.TextField(help_text="The instruction text.") |
|
|
content = models.TextField(help_text="The instruction text.") |
|
|
is_active = models.BooleanField(default=True) |
|
|
is_active = models.BooleanField(default=True) |
|
|
|
|
|
|
|
|
|
|
|
class Meta: |
|
|
|
|
|
ordering = ["id"] |
|
|
|
|
|
|
|
|
def __str__(self): |
|
|
def __str__(self): |
|
|
# Display the first 50 chars as the name in admin |
|
|
# Display the first 50 chars as the name in admin |
|
|
# if self.is_active: |
|
|
# if self.is_active: |
|
|
|