admin.py 316 Bytes
Newer Older
Dalahro's avatar
Dalahro committed
1 2 3 4 5 6 7 8 9 10 11 12
from django.contrib import admin

from .models import Machine, MachineType

class MachineAdmin(admin.ModelAdmin):
    list_display = ('user','type')

class MachineTypeAdmin(admin.ModelAdmin):
    list_display = ('type',)

admin.site.register(Machine, MachineAdmin)
admin.site.register(MachineType, MachineTypeAdmin)