2022-04-02 17:30:58 +00:00
|
|
|
from django.shortcuts import render
|
2022-04-13 13:43:20 +00:00
|
|
|
from django.views.generic import ListView
|
|
|
|
from .models import Scanner
|
2022-04-02 17:30:58 +00:00
|
|
|
|
|
|
|
|
2022-04-13 13:43:20 +00:00
|
|
|
class IndexView(ListView):
|
|
|
|
model = Scanner
|
|
|
|
template_name = 'booker/index.html'
|
|
|
|
|
2022-04-02 17:30:58 +00:00
|
|
|
|
|
|
|
def scanner(request, scanner_id):
|
|
|
|
return render(request, 'booker/scanner.html', {
|
|
|
|
'scanner_id': scanner_id
|
2022-04-13 13:43:20 +00:00
|
|
|
})
|