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