bottleneckcrm/backend/tasks/migrations/0012_task_is_sample.py
Ashwin bd79a7a4cc Refactor code style and improve error handling in analytics API
- Cleaned up admin.py by removing unnecessary dictionary wrapping for fields.
- Adjusted migration files to maintain consistent formatting and removed redundant lines.
- Updated models.py and tests to remove unnecessary blank lines and improve readability.
- Enhanced error handling in the analytics API to properly forward upstream status and messages.
- Added comprehensive tests for the analytics proxy to ensure correct status and body forwarding.
- Updated contributing guidelines to clarify the use of ruff for code style enforcement.
2026-08-07 15:58:35 +05:30

20 lines
800 B
Python

# Generated by Django 6.0.7 on 2026-08-02 02:45
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [
("tasks", "0011_task_custom_fields"),
]
operations = [
migrations.AddField(
model_name="task",
name="is_sample",
field=models.BooleanField(
default=False,
help_text="True only for demo rows created by common.packs.applier._apply_sample_data. Server-set exclusively, never expose this as a writable field on any serializer. It is the sole key common.packs.applier.clear_sample_data uses to decide what to delete, so a client-writable path here would let a user mark an arbitrary real record as sample and have it deleted.",
),
),
]