Skip to content

Commit 9c6a09d

Browse files
committed
Add ordering to supplier list, add is_active column
1 parent d32533e commit 9c6a09d

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

webapp/ordering/admin.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -171,6 +171,8 @@ def stock_product(self, obj):
171171

172172

173173
class SupplierAdmin(DeleteDisabledMixin, admin.ModelAdmin):
174+
list_display = ["name", "is_active"]
175+
ordering = ("name",)
174176
list_filter = ("is_active",)
175177

176178

0 commit comments

Comments
 (0)