|
@@ -63,7 +63,7 @@ class LoanAdmin(admin.ModelAdmin):
|
|
|
|
|
|
@admin.register(Storage)
|
|
|
class StorageAdmin(admin.ModelAdmin):
|
|
|
- list_display = ('name', 'truncated_notes')
|
|
|
+ list_display = ('name', 'truncated_notes', 'items_count')
|
|
|
|
|
|
def truncated_notes(self, obj):
|
|
|
if len(obj.notes) > 50:
|