first commit
This commit is contained in:
8
dashboard/context_processors.py
Normal file
8
dashboard/context_processors.py
Normal file
@@ -0,0 +1,8 @@
|
||||
# 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')
|
||||
}
|
||||
Reference in New Issue
Block a user