backedn
This commit is contained in:
@@ -52,11 +52,11 @@ class TasksViewSet(SiteSectorModelViewSet):
|
||||
search_fields = ['title', 'keywords']
|
||||
|
||||
# Ordering configuration
|
||||
ordering_fields = ['title', 'created_at', 'word_count', 'status']
|
||||
ordering_fields = ['title', 'created_at', 'status']
|
||||
ordering = ['-created_at'] # Default ordering (newest first)
|
||||
|
||||
# Filter configuration (removed deprecated fields)
|
||||
filterset_fields = ['status', 'cluster_id']
|
||||
# Filter configuration
|
||||
filterset_fields = ['status', 'entity_type', 'cluster_role', 'cluster_id']
|
||||
|
||||
def perform_create(self, serializer):
|
||||
"""Require explicit site_id and sector_id - no defaults."""
|
||||
|
||||
Reference in New Issue
Block a user