bottleneckcrm/backend/leads/admin.py
Ashwin e3b5181b19 Refactor comments for clarity and consistency across multiple screens and services
- Updated comments in LeadsListScreen, MoreScreen, TaskDetailScreen, TaskFormScreen, TasksListScreen, TicketAnalyticsScreen, TicketDetailScreen, TicketsListScreen, ApiService, AuthService, CrashReporting, DealCard, TicketCard, MultiSelectSheet, KanbanColumn, StageStepper, TicketApprovalPanel, TicketPropertiesCard, and TicketTimePanel to improve readability and maintain a consistent style.
- Adjusted punctuation and phrasing for better flow and understanding.
2026-08-03 09:36:48 +05:30

13 lines
526 B
Python

from django.contrib import admin
from leads.models import Lead
@admin.register(Lead)
class LeadAdmin(admin.ModelAdmin):
# is_sample marks leads created by the vertical-pack applier's sample
# data and is the guard `clear_sample_data` uses to decide what it may
# delete (see common/packs/applier.py). It must never be editable here.
# A bare ModelAdmin would let a staff user flip it on a real lead,
# putting that lead in scope for the next clear-sample-data call.
readonly_fields = ("is_sample",)