this is a teste of admin with tabular line
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 | from django.contrib import admin
from cadastro_os.models import *
class DesenvolveInline(admin.TabularInline):
model = Desenvolve
extra = 1
class OSAdmin(admin.ModelAdmin):
inlines= (DesenvolveInline,)
class DesenvolveAdmin(admin.ModelAdmin):
list_display = ('func_id','os_id')
admin.site.register(Projeto)
admin.site.register(Funcionario,OSAdmin)
admin.site.register(Membro)
admin.site.register(Andamento)
admin.site.register(OS,OSAdmin)
admin.site.register(Desenvolve,DesenvolveAdmin)
|
Tags: django
Could you explain better what's this for?
Django admin.but I dont know what's meaning?