Internal
Public Access
Initial commit: KeepItGoing task management server
Features: - Django-based REST API with web interface - Task management with tags, priorities, and due dates - Time tracking with start/stop timers - Subtasks support - Task filtering (all, today, upcoming, overdue, completed) - Tag-based organization with color coding - Sorting by due date and priority - Auto-assign tags when filtering - Responsive 3-pane layout (sidebar, task list, detail panel) - Task sharing between users - Mobile-responsive design with dark mode support 🤖 Generated with [Claude Code](https://claude.com/claude-code) Co-Authored-By: Claude Sonnet 4.5 <noreply@anthropic.com>
This commit is contained in:
@@ -0,0 +1,27 @@
|
||||
"""
|
||||
Sync serializers for KeepItGoing API.
|
||||
"""
|
||||
|
||||
from rest_framework import serializers
|
||||
from .models import SyncLog, SyncConflict
|
||||
|
||||
|
||||
class SyncLogSerializer(serializers.ModelSerializer):
|
||||
"""Serializer for sync logs."""
|
||||
|
||||
class Meta:
|
||||
model = SyncLog
|
||||
fields = ['id', 'device_id', 'last_sync_at', 'sync_token', 'created_at']
|
||||
read_only_fields = ['id', 'created_at']
|
||||
|
||||
|
||||
class SyncConflictSerializer(serializers.ModelSerializer):
|
||||
"""Serializer for sync conflicts."""
|
||||
|
||||
class Meta:
|
||||
model = SyncConflict
|
||||
fields = [
|
||||
'id', 'entity_type', 'entity_id', 'local_data', 'server_data',
|
||||
'status', 'resolved_at', 'created_at'
|
||||
]
|
||||
read_only_fields = ['id', 'created_at']
|
||||
Reference in New Issue
Block a user