Skip to content

admin

main.admin ¤

Admin module for the main app.

Classes¤

CapacityAdmin ¤

Bases: ModelAdmin

Admin class for the Capacity model.

FundingAdmin ¤

Bases: ModelAdmin

Admin class for the Funding model.

MonthlyChargeAdmin ¤

Bases: ModelAdmin

Admin class for the MonthlyCharge model.

Functions¤
confirm_charge(request, queryset) ¤

Update monthly charge status to 'Confirmed'.

Source code in main/admin.py
100
101
102
103
104
105
@admin.action(description="Confirm monthly charges")
def confirm_charge(
    self, request: HttpRequest, queryset: QuerySet[MonthlyCharge]
) -> None:
    """Update monthly charge status to 'Confirmed'."""
    queryset.update(status="Confirmed")

ProjectAdmin ¤

Bases: ModelAdmin

Admin class for the Project model.

TimeEntryAdmin ¤

Bases: ModelAdmin

Admin class for the TimeEntry model.