8
0
Fork 0
mirror of https://gitlab2.federez.net/re2o/re2o synced 2024-11-23 20:03:11 +00:00
re2o/machines/admin.py

13 lines
316 B
Python
Raw Normal View History

2016-07-02 22:27:22 +00:00
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)