List feature
+ implemented list feature + implemented category feature
This commit is contained in:
parent
5877b83424
commit
32d60f51ac
23 changed files with 210 additions and 60 deletions
|
|
@ -1,10 +1,15 @@
|
|||
from django.contrib import admin
|
||||
from .models import Object
|
||||
from .models import Object, Category
|
||||
|
||||
|
||||
class ObjectAdmin(admin.ModelAdmin):
|
||||
list_display = ('title', 'ammout', 'uuid', 'img')
|
||||
|
||||
|
||||
class CategoryAdmin(admin.ModelAdmin):
|
||||
list_display = ('name', 'id')
|
||||
|
||||
|
||||
# Register your models here.
|
||||
admin.site.register(Object, ObjectAdmin)
|
||||
admin.site.register(Category, CategoryAdmin)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue