Isbns, and minor fixes.
[redakcja.git] / src / isbn / views.py
diff --git a/src/isbn/views.py b/src/isbn/views.py
new file mode 100644 (file)
index 0000000..70c101a
--- /dev/null
@@ -0,0 +1,9 @@
+from django.shortcuts import render
+from .models import Isbn, IsbnPool
+
+
+def isbn_list(request):
+    return render(request, 'isbn/list.html', {
+        'pools': IsbnPool.objects.all(),
+        'list': Isbn.objects.all(),
+    })