mirror of
https://gitlab2.federez.net/re2o/re2o
synced 2024-11-25 22:22:26 +00:00
12 lines
316 B
Python
12 lines
316 B
Python
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)
|