9 lines
209 B
Python
9 lines
209 B
Python
from .models import ProductCategory
|
|
from django.views.generic import ListView
|
|
|
|
|
|
class MenuView(ListView):
|
|
model = ProductCategory
|
|
template_name = "bar_menu.html"
|
|
context_object_name = "categories"
|