8 lines
258 B
Python
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')
|
|
} |