|
|
|
@ -42,7 +42,8 @@ class NotTooOldFilter(SimpleListFilter):
|
|
|
|
class MaterialAdmin(admin.ModelAdmin):
|
|
|
|
class MaterialAdmin(admin.ModelAdmin):
|
|
|
|
"""Edit view of a MaterialPart"""
|
|
|
|
"""Edit view of a MaterialPart"""
|
|
|
|
|
|
|
|
|
|
|
|
list_display = ('name', 'description', 'quantity_real', 'buy_date',
|
|
|
|
list_display = ('name', 'description', 'quantity_real',
|
|
|
|
|
|
|
|
'ownership_overview', 'buy_date',
|
|
|
|
'lifetime', 'not_too_old', 'admin_thumbnail')
|
|
|
|
'lifetime', 'not_too_old', 'admin_thumbnail')
|
|
|
|
inlines = [OwnershipInline]
|
|
|
|
inlines = [OwnershipInline]
|
|
|
|
list_filter = (NotTooOldFilter,)
|
|
|
|
list_filter = (NotTooOldFilter,)
|
|
|
|
|