- 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.
13 lines
526 B
Python
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",)
|