Files
kwh-fln/dashboard/context_processors.py
2026-10-01 15:50:43 +07:00

8 lines
258 B
Python

# dashboard/context_processors.py
from .models import Mesin
def daftar_mesin_global(request):
# Mengambil semua mesin beserta data area-nya
return {
'mesin_global_list': Mesin.objects.select_related('area').all().order_by('nama_mesin')
}