2020-12-31 10:36:51 +01:00
|
|
|
from django.views.generic import TemplateView, ListView
|
2020-12-21 19:53:38 +01:00
|
|
|
|
2020-12-31 10:36:51 +01:00
|
|
|
from jobs.models import Job
|
2020-12-28 20:28:52 +01:00
|
|
|
|
2020-12-31 10:36:51 +01:00
|
|
|
|
|
|
|
class HomeView(ListView):
|
|
|
|
template_name = 'jobs/index.html'
|
|
|
|
context_object_name = 'jobs'
|
|
|
|
model = Job
|
|
|
|
paginate_by = 1
|