| 73 | return total_bytes |
| 74 | |
| 75 | class TaskSizeSerializer(serializers.Serializer): |
| 76 | assets = serializers.CharField(help_text="One of: [all,backup,custom]") |
| 77 | customAssets = serializers.JSONField(help_text="List of custom assets", default=[]) |
| 78 | |
| 79 | class ShareTaskSerializer(TaskSizeSerializer): |
| 80 | project = serializers.CharField(help_text="Remote project ID or empty", default="", allow_blank=True) |