summaryrefslogtreecommitdiff
path: root/app/products/views.py
diff options
context:
space:
mode:
Diffstat (limited to 'app/products/views.py')
-rw-r--r--app/products/views.py15
1 files changed, 0 insertions, 15 deletions
diff --git a/app/products/views.py b/app/products/views.py
deleted file mode 100644
index 30be542..0000000
--- a/app/products/views.py
+++ /dev/null
@@ -1,15 +0,0 @@
-from django.shortcuts import render
-from .models import Product
-
-
-def insert_products(request):
- """
- The view that handles the admin insert products feature
- """
- object_list = Product.objects.all()
- #object_list = sorted(
- # chain(images, videos, audio),
- # key=lambda instance: instance.pub_date,
- # reverse=True
- #)
- return render(request, 'admin/insert_products.html', {'object_list': object_list, 'textarea_id': request.GET['textarea']})