18 lines
361 B
Python
18 lines
361 B
Python
from django.contrib import admin
|
|
from figurines.models import Figurine
|
|
from figurines.models import Set
|
|
|
|
|
|
class FigurineInline(admin.TabularInline):
|
|
model = Figurine
|
|
fields = ('name', 'wish')
|
|
extra = 2
|
|
|
|
|
|
class SetAdmin(admin.ModelAdmin):
|
|
list_display = ('shortname', 'name')
|
|
inlines = (FigurineInline, )
|
|
|
|
|
|
admin.site.register(Set, SetAdmin)
|