Skip to content
Snippets Groups Projects
Commit 28296eda authored by Lukas Schneider's avatar Lukas Schneider
Browse files

Update admin fields

parent fe7c6af7
No related branches found
No related tags found
No related merge requests found
......@@ -15,8 +15,8 @@ class UserAdmin(admin.ModelAdmin):
@admin.register(Product)
class ProductAdmin(admin.ModelAdmin):
list_display = ('name', 'price', 'category')
fields = ('name', 'price', 'category')
list_display = ('id', 'name', 'price', 'category', 'stock')
fields = ('name', 'price', 'category', 'stock')
@admin.register(ProductCategory)
class ProductCategoryAdmin(admin.ModelAdmin):
......@@ -31,4 +31,4 @@ class UserIdentifierAdmin(admin.ModelAdmin):
@admin.register(ProductIdentifier)
class ProductIdentifierAdmin(admin.ModelAdmin):
list_display = ('id', 'identifier', 'identifier_type')
fields = ('identifier', 'identifier_type')
fields = ('identifier', 'identifier_type', 'product')
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment