homelog/booker/views.py

18 lines
434 B
Python
Raw Normal View History

from django.shortcuts import render
2022-05-24 15:53:31 +00:00
from django.views.generic import ListView, TemplateView
from .models import Scanner
class IndexView(ListView):
model = Scanner
template_name = 'booker/index.html'
def scanner(request, scanner_id):
return render(request, 'booker/scanner.html', {
'scanner_id': scanner_id
})
2022-05-24 15:53:31 +00:00
class SmartphoneScannerView(TemplateView):
template_name = 'booker/smartphone_scanner.html'