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