cleanup in bar/

This commit is contained in:
Stephan Telling 2018-03-04 15:59:12 +01:00
parent aaa4df27db
commit 663099a603
4 changed files with 0 additions and 7 deletions

View file

@ -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']

View file

@ -1,5 +1,3 @@
from django.apps import AppConfig

View file

@ -1,5 +1,4 @@
from django.db import models
from utils.models import CampRelatedModel

View file

@ -6,4 +6,3 @@ class MenuView(ListView):
model = ProductCategory
template_name = "bar_menu.html"
context_object_name = "categories"