cleanup in bar/
This commit is contained in:
parent
aaa4df27db
commit
663099a603
|
@ -1,5 +1,4 @@
|
|||
from django.contrib import admin
|
||||
|
||||
from .models import ProductCategory, Product
|
||||
|
||||
|
||||
|
@ -12,5 +11,3 @@ class ProductCategoryAdmin(admin.ModelAdmin):
|
|||
class ProductAdmin(admin.ModelAdmin):
|
||||
list_display = ['name', 'price', 'category', 'in_stock']
|
||||
list_editable = ['in_stock']
|
||||
|
||||
|
||||
|
|
|
@ -1,5 +1,3 @@
|
|||
|
||||
|
||||
from django.apps import AppConfig
|
||||
|
||||
|
||||
|
|
|
@ -1,5 +1,4 @@
|
|||
from django.db import models
|
||||
|
||||
from utils.models import CampRelatedModel
|
||||
|
||||
|
||||
|
|
|
@ -6,4 +6,3 @@ class MenuView(ListView):
|
|||
model = ProductCategory
|
||||
template_name = "bar_menu.html"
|
||||
context_object_name = "categories"
|
||||
|
||||
|
|
Loading…
Reference in a new issue