2
0
mirror of https://github.com/inventree/InvenTree.git synced 2025-09-24 11:30:19 +00:00

Started work on cross-referencing

- part admin now shows total quantity in stock
- part model can return a list of projects it is associated with
This commit is contained in:
Oliver Walters
2017-03-28 21:24:00 +11:00
parent be030991a5
commit 5c8cc035a4
4 changed files with 50 additions and 5 deletions

View File

@@ -4,7 +4,7 @@ from .models import PartCategory, Part
class PartAdmin(admin.ModelAdmin):
list_display = ('name', 'IPN', 'category')
list_display = ('name', 'IPN', 'quantity', 'category')
# Custom form for PartCategory
class PartCategoryAdmin(admin.ModelAdmin):