This commit is contained in:
IGNY8 VPS (Salman)
2025-11-26 19:14:30 +00:00
parent f88aae78b1
commit 94a8aee0e2
12 changed files with 889 additions and 53 deletions

View File

@@ -91,6 +91,11 @@ class Tasks(SiteSectorBaseModel):
null=True,
help_text="Comma-separated keywords for this task"
)
word_count = models.IntegerField(
default=1000,
validators=[MinValueValidator(100)],
help_text="Target word count for content generation"
)
status = models.CharField(max_length=50, choices=STATUS_CHOICES, default='queued')
created_at = models.DateTimeField(auto_now_add=True)
@@ -165,6 +170,10 @@ class Content(SiteSectorBaseModel):
# Core content fields
title = models.CharField(max_length=255, db_index=True)
content_html = models.TextField(help_text="Final HTML content")
word_count = models.IntegerField(
default=0,
help_text="Actual word count of content (calculated from HTML)"
)
cluster = models.ForeignKey(
'planner.Clusters',
on_delete=models.SET_NULL,